Change 'simplifyReturn' to 'simplifyReturnStrncat' because it's not clear what this function does.
This commit is contained in:
parent
4d56395504
commit
b6a0896ce6
|
@ -3784,7 +3784,7 @@ bool Tokenizer::simplifyTokenList()
|
|||
}
|
||||
}
|
||||
|
||||
simplifyReturn();
|
||||
simplifyReturnStrncat();
|
||||
|
||||
removeRedundantAssignment();
|
||||
|
||||
|
@ -9112,7 +9112,7 @@ void Tokenizer::unnecessaryQualificationError(const Token *tok, const std::strin
|
|||
Check::reportError(errmsg);
|
||||
}
|
||||
|
||||
void Tokenizer::simplifyReturn()
|
||||
void Tokenizer::simplifyReturnStrncat()
|
||||
{
|
||||
for (Token *tok = _tokens; tok; tok = tok->next()) {
|
||||
if (Token::Match(tok, "return strncat ( %any% , %any% , %any% ) ;")) {
|
||||
|
|
|
@ -723,7 +723,7 @@ public:
|
|||
* Simplify e.g. 'return(strncat(temp,"a",1));' into
|
||||
* strncat(temp,"a",1); return temp;
|
||||
*/
|
||||
void simplifyReturn();
|
||||
void simplifyReturnStrncat();
|
||||
|
||||
/**
|
||||
* Output list of unknown types.
|
||||
|
|
Loading…
Reference in New Issue