Change 'simplifyReturn' to 'simplifyReturnStrncat' because it's not clear what this function does.

This commit is contained in:
Edoardo Prezioso 2012-01-26 11:49:08 +01:00
parent 4d56395504
commit b6a0896ce6
2 changed files with 3 additions and 3 deletions

View File

@ -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% ) ;")) {

View File

@ -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.