Change Tokenizer member function name.

From 'simplifyQuestionMark' to 'simplifyConstTernaryOp' (the older name was not clear). Adjusted the doxy comment.
This commit is contained in:
Edoardo Prezioso 2012-11-02 14:52:56 +01:00
parent 472a39d157
commit c9e0089546
2 changed files with 4 additions and 4 deletions

View File

@ -3366,7 +3366,7 @@ bool Tokenizer::simplifyTokenList()
modified |= simplifyKnownVariables();
modified |= removeRedundantConditions();
modified |= simplifyRedundantParenthesis();
modified |= simplifyQuestionMark();
modified |= simplifyConstTernaryOp();
modified |= simplifyCalculations();
}
@ -4416,7 +4416,7 @@ bool Tokenizer::simplifyConditions()
return ret;
}
bool Tokenizer::simplifyQuestionMark()
bool Tokenizer::simplifyConstTernaryOp()
{
bool ret = false;
for (Token *tok = list.front(); tok; tok = tok->next()) {

View File

@ -215,12 +215,12 @@ public:
void simplifyStdType();
/**
* Simplify question mark - colon operator
* Simplify easy constant '?:' operation
* Example: 0 ? (2/0) : 0 => 0
* @return true if something is modified
* false if nothing is done.
*/
bool simplifyQuestionMark();
bool simplifyConstTernaryOp();
/**
* Simplify compound assignments