astyle formatting
This commit is contained in:
parent
a9082c902a
commit
d82c792c1b
|
@ -8510,15 +8510,15 @@ void Tokenizer::findGarbageCode() const
|
|||
|
||||
// keyword keyword
|
||||
const std::set<std::string> nonConsecutiveKeywords{"break",
|
||||
"continue",
|
||||
"for",
|
||||
"goto",
|
||||
"if",
|
||||
"return",
|
||||
"switch",
|
||||
"throw",
|
||||
"typedef",
|
||||
"while"};
|
||||
"continue",
|
||||
"for",
|
||||
"goto",
|
||||
"if",
|
||||
"return",
|
||||
"switch",
|
||||
"throw",
|
||||
"typedef",
|
||||
"while"};
|
||||
for (const Token *tok = tokens(); tok; tok = tok->next()) {
|
||||
if (Token::Match(tok, "%name% %name%") && nonConsecutiveKeywords.count(tok->str()) == 1 && nonConsecutiveKeywords.count(tok->next()->str()) == 1)
|
||||
syntaxError(tok);
|
||||
|
|
Loading…
Reference in New Issue