setVarIdStructMembers: Fixed code so loop will terminate properly
This commit is contained in:
parent
710e066a9a
commit
beabe110fd
@ -2470,8 +2470,8 @@ static void setVarIdStructMembers(Token **tok1,
|
|||||||
|
|
||||||
tok = tok->tokAt(3);
|
tok = tok->tokAt(3);
|
||||||
while (tok->str() != "}") {
|
while (tok->str() != "}") {
|
||||||
while (Token::Match(tok, "{|[|("))
|
if (Token::Match(tok, "{|[|("))
|
||||||
tok = tok->link()->next();
|
tok = tok->link();
|
||||||
if (Token::Match(tok->previous(), "[,{] . %name% =")) {
|
if (Token::Match(tok->previous(), "[,{] . %name% =")) {
|
||||||
tok = tok->next();
|
tok = tok->next();
|
||||||
const std::map<std::string, unsigned int>::iterator it = members.find(tok->str());
|
const std::map<std::string, unsigned int>::iterator it = members.find(tok->str());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user