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();
|
simplifyGoto();
|
||||||
|
|
||||||
simplifyDeadCode();
|
simplifyFlowControl();
|
||||||
|
|
||||||
// Combine wide strings
|
// Combine wide strings
|
||||||
for (Token *tok = _tokens; tok; tok = tok->next()) {
|
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 indentlevel = 0;
|
||||||
unsigned int indentcase = 0;
|
unsigned int indentcase = 0;
|
||||||
|
|
|
@ -340,7 +340,7 @@ public:
|
||||||
/** Simplify redundant code placed after control flow statements :
|
/** Simplify redundant code placed after control flow statements :
|
||||||
* 'return', 'goto', 'break' and 'continue'
|
* 'return', 'goto', 'break' and 'continue'
|
||||||
*/
|
*/
|
||||||
void simplifyDeadCode();
|
void simplifyFlowControl();
|
||||||
|
|
||||||
/** Expand nested strcat() calls. */
|
/** Expand nested strcat() calls. */
|
||||||
void simplifyNestedStrcat();
|
void simplifyNestedStrcat();
|
||||||
|
|
Loading…
Reference in New Issue