Revert 'using' changes as it was until some time ago.
This commit is contained in:
parent
cb22e04a36
commit
94a2287370
|
@ -1485,13 +1485,6 @@ void Scope::getVariableList()
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
//skip 'using (namespace)' keyword
|
|
||||||
else if (tok->str() == "using") {
|
|
||||||
if (tok->next() && tok->next()->str() == "namespace")
|
|
||||||
tok = tok->next();
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Search for start of statement..
|
// Search for start of statement..
|
||||||
else if (tok->previous() && !Token::Match(tok->previous(), ";|{|}|public:|protected:|private:"))
|
else if (tok->previous() && !Token::Match(tok->previous(), ";|{|}|public:|protected:|private:"))
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -3647,12 +3647,15 @@ void Tokenizer::setVarId()
|
||||||
if (tok->str() == "unsigned")
|
if (tok->str() == "unsigned")
|
||||||
tok = tok->next();
|
tok = tok->next();
|
||||||
|
|
||||||
if (tok->str() == "using") {
|
if (Token::Match(tok, "using namespace %type% ;")) {
|
||||||
if (tok->next() && tok->next()->str() == "namespace")
|
|
||||||
tok = tok->next();
|
tok = tok->next();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tok->str() == "using") {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (Token::Match(tok, "goto %any% ;"))
|
if (Token::Match(tok, "goto %any% ;"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue