We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ba7901 commit 09e7d4eCopy full SHA for 09e7d4e
1 file changed
lib/tokenize.cpp
@@ -10078,10 +10078,7 @@ void Tokenizer::simplifyBitfields()
10078
if (!Token::Match(tok, ";|{|}|public:|protected:|private:"))
10079
continue;
10080
10081
- bool isEnum = false;
10082
- if (tok->str() == "}") {
10083
- isEnum = isEnumStart(tok->link());
10084
- }
+ const bool isEnum = tok->str() == "}" && isEnumStart(tok->link());
10085
10086
const auto tooLargeError = [this](const Token *tok) {
10087
const auto max = std::numeric_limits<short>::max();
0 commit comments