fix two internal warnings:
[lib/checkuninitvar.cpp:1668]: (style) Call to 'Token::tokAt()' followed by 'Token::str()' can be simplified. [lib/checkuninitvar.cpp:1669]: (style) Call to 'Token::tokAt()' followed by 'Token::str()' can be simplified.
This commit is contained in:
parent
2e45df3b72
commit
cc7f69da54
|
@ -1665,8 +1665,8 @@ bool CheckUninitVar::isVariableUsage(const Token *vartok, bool pointer, bool all
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// code like: return foo( variable
|
// code like: return foo( variable
|
||||||
if (vartok->tokAt(-3) && vartok->tokAt(-3)->str() == "return"
|
if (vartok->tokAt(-3) && vartok->strAt(-3) == "return"
|
||||||
&& vartok->tokAt(-1) && vartok->tokAt(-1)->str() == "(")
|
&& vartok->tokAt(-1) && vartok->strAt(-1) == "(")
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// Passing variable to typeof/__alignof__
|
// Passing variable to typeof/__alignof__
|
||||||
|
|
Loading…
Reference in New Issue