We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 418c2e5 commit 828fdb6Copy full SHA for 828fdb6
lib/tokenize.cpp
@@ -10226,7 +10226,7 @@ void Tokenizer::removeUnnecessaryQualification()
10226
std::vector<Space> classInfo;
10227
for (Token *tok = list.front(); tok; tok = tok->next()) {
10228
if (Token::Match(tok, "class|struct|namespace %type% :|{") &&
10229
- (!tok->previous() || (tok->previous() && tok->previous()->str() != "enum"))) {
+ (!tok->previous() || tok->previous()->str() != "enum")) {
10230
Space info;
10231
info.isNamespace = tok->str() == "namespace";
10232
tok = tok->next();
0 commit comments