Improve handling of decltype( in for loops
Simplify pattern macht and token selection Improve handling of decltype( in for loops
This commit is contained in:
parent
160b8f0f17
commit
f413c9cad8
|
@ -485,6 +485,9 @@ static Token * skipDecl(Token *tok)
|
||||||
} else if (Token::Match(vartok, "%var% [:=(]")) {
|
} else if (Token::Match(vartok, "%var% [:=(]")) {
|
||||||
return vartok;
|
return vartok;
|
||||||
}
|
}
|
||||||
|
else if (Token::simpleMatch(vartok, "decltype (")) {
|
||||||
|
return vartok->linkAt(1)->next();
|
||||||
|
}
|
||||||
vartok = vartok->next();
|
vartok = vartok->next();
|
||||||
}
|
}
|
||||||
return tok;
|
return tok;
|
||||||
|
|
Loading…
Reference in New Issue