Warning, /sdk/clazy/docs/checks/README-unused-non-trivial-variable.md is written in an unsupported language. File is not indexed.
0001 # unused-non-trivial-variable 0002 0003 Warns about unused Qt value classes. 0004 Compilers usually only warn when trivial classes are unused and don't emit warnings for non-trivial classes. 0005 0006 This check has a whitelist of common Qt classes such as containers, `QFont`, `QUrl`, etc and warns for those too. 0007 0008 See `UnusedNonTrivialType::isInterestingType(QualType t)` for a list of all types. 0009 0010 It's possible to extend the whitelist with user types, by setting the env variable `CLAZY_UNUSED_NON_TRIVIAL_VARIABLE_WHITELIST`. 0011 It accepts a comma separate name of types. 0012 0013 It's possible to disable the whitelist via exporting `CLAZY_EXTRA_OPTIONS=unused-non-trivial-variable-no-whitelist`, 0014 when this env variable is set clazy will warn for any unused non-trivial type. This will create many false positives, 0015 such as RAII classes, but still useful to run at least once on your codebase. When disabling the whitelist this way it's also possible 0016 to black list types, by setting a comma separated list of types to `CLAZY_UNUSED_NON_TRIVIAL_VARIABLE_BLACKLIST`