-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more lint warnings #533
Comments
Hi, The following code snipped would trigger this warning:
Where it would be the best place to put the code to detect this scenario? |
I think it would be easiest as a post-processing task once the AST is constructed. You can walk the tree, find all variables and then loop through their drivers by calling getFirstDriver() / getNextDriver() and look at the places it's assigned. |
Ideas for things that should be checked:
Implicit conversions in constexprs that change valueempty loop/if bodyimplicit conversionssignedness issuesunused variablesunused typedefunused parametersposedge of multi-bit valueThe text was updated successfully, but these errors were encountered: