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 // keyword keyword
const std::set<std::string> nonConsecutiveKeywords{"break", const std::set<std::string> nonConsecutiveKeywords{"break",
"continue", "continue",
"for", "for",
"goto", "goto",
"if", "if",
"return", "return",
"switch", "switch",
"throw", "throw",
"typedef", "typedef",
"while"}; "while"};
for (const Token *tok = tokens(); tok; tok = tok->next()) { 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) if (Token::Match(tok, "%name% %name%") && nonConsecutiveKeywords.count(tok->str()) == 1 && nonConsecutiveKeywords.count(tok->next()->str()) == 1)
syntaxError(tok); syntaxError(tok);