We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d588469 commit f6161c6Copy full SHA for f6161c6
1 file changed
lib/checkunusedvar.cpp
@@ -772,8 +772,10 @@ void CheckUnusedVar::checkFunctionVariableUsage_iterateScopes(const Scope* const
772
break;
773
}
774
if (tok->isName() && tok->str().back() == '>') {
775
+ // TODO: This is a quick fix to handle when constants are used
776
+ // as template parameters. Try to handle this better, perhaps
777
+ // only remove constants.
778
variables.clear();
- break;
779
780
781
// bailout when for_each is used
0 commit comments