Tokenizer: Fixed 'variableScope' message.
This commit is contained in:
parent
1b18bfc93c
commit
cc3139cf39
|
@ -4980,7 +4980,6 @@ void Tokenizer::simplifyVarDecl(bool only_k_r_fpar)
|
||||||
|
|
||||||
bool isconst = false;
|
bool isconst = false;
|
||||||
bool isstatic = false;
|
bool isstatic = false;
|
||||||
bool ispointer = false;
|
|
||||||
Token *tok2 = type0;
|
Token *tok2 = type0;
|
||||||
unsigned int typelen = 1;
|
unsigned int typelen = 1;
|
||||||
|
|
||||||
|
@ -5084,6 +5083,7 @@ void Tokenizer::simplifyVarDecl(bool only_k_r_fpar)
|
||||||
//pattern: "%type% *| ... *| const| %var% ,|="
|
//pattern: "%type% *| ... *| const| %var% ,|="
|
||||||
if (Token::Match(tok2, "%type%") ||
|
if (Token::Match(tok2, "%type%") ||
|
||||||
(tok2 && tok2->previous() && tok2->previous()->str() == ">")) {
|
(tok2 && tok2->previous() && tok2->previous()->str() == ">")) {
|
||||||
|
bool ispointer = false;
|
||||||
Token *varName = tok2;
|
Token *varName = tok2;
|
||||||
if (!tok2->previous() || tok2->previous()->str() != ">")
|
if (!tok2->previous() || tok2->previous()->str() != ">")
|
||||||
varName = varName->next();
|
varName = varName->next();
|
||||||
|
|
Loading…
Reference in New Issue