Tokenizer::setVarIdNew: handle c++ keyword 'using'
This commit is contained in:
parent
c58d02f146
commit
8f866c6e4c
|
@ -2912,7 +2912,7 @@ void Tokenizer::setVarIdNew()
|
|||
|
||||
// Variable declaration can't start with "return", etc
|
||||
if (tok2->str() == "return" || tok2->str() == "NOT" || tok2->str() == "goto" ||
|
||||
(!isC() && (tok2->str() == "delete" || tok2->str() == "throw")))
|
||||
(!isC() && (tok2->str() == "delete" || tok2->str() == "throw" || tok2->str() == "using")))
|
||||
continue;
|
||||
|
||||
const bool decl = setVarIdParseDeclaration(&tok2, variableId, executableScope.top());
|
||||
|
|
Loading…
Reference in New Issue