We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcd87b0 commit 50b1769Copy full SHA for 50b1769
1 file changed
lib/checkother.cpp
@@ -631,7 +631,7 @@ void CheckOther::checkRedundantAssignment()
631
[&](const Token *rhs) {
632
if (Token::simpleMatch(rhs, "{ 0 }"))
633
return ChildrenToVisit::none;
634
- if (Token::Match(rhs, "%str%|%num%|%name%") && !rhs->varId())
+ if (Token::Match(rhs, "%num%|%name%") && !rhs->varId())
635
636
if (Token::Match(rhs, ":: %name%") && rhs->hasKnownIntValue())
637
0 commit comments