We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7130c3 commit c524609Copy full SHA for c524609
1 file changed
lib/tokenize.cpp
@@ -7964,8 +7964,8 @@ void Tokenizer::elseif()
7964
7965
if (Token::Match(tok2, "}|;")) {
7966
if (tok2->next() && tok2->strAt(1) != "else") {
7967
- tok->insertToken("{");
7968
- tok2->insertToken("}");
+ tok->insertToken("{")->isSimplifiedScope(true);
+ tok2->insertToken("}")->isSimplifiedScope(true);
7969
Token::createMutualLinks(tok->next(), tok2->next());
7970
break;
7971
}
0 commit comments