We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e8e004 commit ff580f9Copy full SHA for ff580f9
lib/checkother.cpp
@@ -513,7 +513,7 @@ void CheckOther::checkRedundantAssignment()
513
const Token * tokenToCheck = tok->astOperand1();
514
515
// Check if we are working with union
516
- for (const Token* tempToken = tokenToCheck; Token::Match(tempToken, ".");) {
+ for (const Token* tempToken = tokenToCheck; Token::simpleMatch(tempToken, ".");) {
517
tempToken = tempToken->astOperand1();
518
if (tempToken && tempToken->variable() && tempToken->variable()->type() && tempToken->variable()->type()->isUnionType())
519
tokenToCheck = tempToken;
0 commit comments