aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unused-non-trivial-variable
Commit message (Collapse)AuthorAgeFilesLines
* unused-non-trivial-variable: Add user blacklist and whitelistSergio Martins2018-01-154-3/+29
| | | | | | | | | | | You can now use CLAZY_UNUSED_NON_TRIVIAL_VARIABLE_WHITELIST to set a comma separated list of user types which you want to warn on. Conversly, if you disabled the whitelist via export CLAZY_EXTRA_OPTIONS=unused-non-trivial-variable-no-whitelist then you'll want a blacklist, that's the env variable CLAZY_UNUSED_NON_TRIVIAL_VARIABLE_BLACKLIST, which also accepts comma separated list. BUG: 388979
* unused-non-trivial-variable: Add option to disable the whitelistSergio Martins2018-01-153-0/+73
| | | | | | | | | | | | | Meaning it will warn for any unused non-trivial variable. This will cause false-positives, such as RAII types, but still useful to run at least once on your code. Do use it: export CLAZY_EXTRA_OPTIONS=unused-non-trivial-variable-no-whitelist Next will implement blacklist/whitelist support from env-variable CCBUG: 388979
* unused-non-trivial-variable: Fix false positive when decl begins with macroSergio Martins2017-10-052-1/+4
| | | | | | We check if the variable is used after the location where it was declared, but it the expression begins with a macro, it was using the location of where the macro was written, and where it was used.
* unused-non-trivial-variable: Add support for many more typesSergio Martins2017-06-032-2/+23
|
* Introduce unused-non-trivial-variable checkSergio Martins2016-02-283-0/+45
Because the compilers don't warn for unused non-trivial Qt value classes. This check has a whitelist of classes and warns when they there are unused variables. BUG: 359000