Merge pull request #367 from Dmitry-Me/fixVariableCapitalization
Fix variable capitalization.
This commit is contained in:
commit
946c139043
|
@ -5439,10 +5439,10 @@ void Tokenizer::simplifyVarDecl(Token * tokBegin, Token * tokEnd, bool only_k_r_
|
||||||
|
|
||||||
else if (std::strchr(";,", tok2->str()[0])) {
|
else if (std::strchr(";,", tok2->str()[0])) {
|
||||||
// "type var =" => "type var; var ="
|
// "type var =" => "type var; var ="
|
||||||
const Token *VarTok = type0->tokAt((int)typelen);
|
const Token *varTok = type0->tokAt((int)typelen);
|
||||||
while (Token::Match(VarTok, "*|&|const"))
|
while (Token::Match(varTok, "*|&|const"))
|
||||||
VarTok = VarTok->next();
|
varTok = varTok->next();
|
||||||
list.insertTokens(eq, VarTok, 2);
|
list.insertTokens(eq, varTok, 2);
|
||||||
eq->str(";");
|
eq->str(";");
|
||||||
|
|
||||||
// "= x, " => "= x; type "
|
// "= x, " => "= x; type "
|
||||||
|
|
Loading…
Reference in New Issue