We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f922f5 commit 02402eeCopy full SHA for 02402ee
1 file changed
lib/tokenize.cpp
@@ -8900,7 +8900,6 @@ void Tokenizer::simplifyBitfields()
8900
{
8901
bool goback = false;
8902
for (Token *tok = list.front(); tok; tok = tok->next()) {
8903
-
8904
if (goback) {
8905
goback = false;
8906
tok = tok->previous();
@@ -8925,7 +8924,7 @@ void Tokenizer::simplifyBitfields()
8925
8924
8926
last = tok1->next();
8927
}
8928
- } else if (Token::Match(tok->next(), "const| %type% : %any% ;") &&
+ } else if (Token::Match(tok->next(), "const| %type% : %num%|%bool% ;") &&
8929
tok->next()->str() != "default") {
8930
const int offset = (tok->next()->str() == "const") ? 1 : 0;
8931
0 commit comments