We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1c6cb9 commit d918f76Copy full SHA for d918f76
1 file changed
lib/checkclass.cpp
@@ -950,7 +950,7 @@ void CheckClass::initializationListUsage()
950
break;
951
if (Token::Match(tok, "try|do {"))
952
953
- if (!Token::Match(tok, "%var% =") || tok->strAt(-1) == "*" || (tok->strAt(-1) == "." && tok->strAt(-2) != "this"))
+ if (!Token::Match(tok, "%var% =") || tok->strAt(-1) == "*" || tok->strAt(-1) == ".")
954
continue;
955
956
const Variable* var = tok->variable();
0 commit comments