astyle formatting

This commit is contained in:
Daniel Marjamäki 2019-03-23 19:00:03 +01:00
parent a9082c902a
commit d82c792c1b
1 changed files with 9 additions and 9 deletions

View File

@ -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);