use simpleMatch for simple pattern
This commit is contained in:
parent
8a738eefab
commit
25a1ea3d18
|
@ -1034,7 +1034,7 @@ int CheckUninitVar::isFunctionParUsage(const Token *vartok, bool pointer, Alloc
|
||||||
start = start->previous();
|
start = start->previous();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Token::Match(start->link(), ") {"))
|
if (Token::simpleMatch(start->link(), ") {"))
|
||||||
return (!pointer || alloc == NO_ALLOC);
|
return (!pointer || alloc == NO_ALLOC);
|
||||||
|
|
||||||
// is this a function call?
|
// is this a function call?
|
||||||
|
|
Loading…
Reference in New Issue