parent
72f9fcefbb
commit
4d5fe6ec5e
|
@ -9410,15 +9410,15 @@ void Tokenizer::findGarbageCode() const
|
||||||
const bool isCPP11 = isCPP() && mSettings->standards.cpp >= Standards::CPP11;
|
const bool isCPP11 = isCPP() && mSettings->standards.cpp >= Standards::CPP11;
|
||||||
|
|
||||||
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()) {
|
||||||
// initialization: = {
|
// initialization: = {
|
||||||
|
|
Loading…
Reference in New Issue