Changed the name of the removal of dead code after flow control statements for consistency (simplifyDeadCode is too generalized as name)
This commit is contained in:
parent
57ead6988e
commit
8afc1b6f2d
|
@ -3963,7 +3963,7 @@ bool Tokenizer::simplifyTokenList()
|
|||
|
||||
simplifyGoto();
|
||||
|
||||
simplifyDeadCode();
|
||||
simplifyFlowControl();
|
||||
|
||||
// Combine wide strings
|
||||
for (Token *tok = _tokens; tok; tok = tok->next()) {
|
||||
|
@ -4270,7 +4270,7 @@ void Tokenizer::removeRedundantAssignment()
|
|||
}
|
||||
}
|
||||
|
||||
void Tokenizer::simplifyDeadCode()
|
||||
void Tokenizer::simplifyFlowControl()
|
||||
{
|
||||
unsigned int indentlevel = 0;
|
||||
unsigned int indentcase = 0;
|
||||
|
|
|
@ -340,7 +340,7 @@ public:
|
|||
/** Simplify redundant code placed after control flow statements :
|
||||
* 'return', 'goto', 'break' and 'continue'
|
||||
*/
|
||||
void simplifyDeadCode();
|
||||
void simplifyFlowControl();
|
||||
|
||||
/** Expand nested strcat() calls. */
|
||||
void simplifyNestedStrcat();
|
||||
|
|
Loading…
Reference in New Issue