astyle formatting
This commit is contained in:
parent
a9082c902a
commit
d82c792c1b
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue