Tokenizer: Cleanup the Tokenizer::tokenizeCondition used by the preprocessor
This commit is contained in:
parent
a5149d68ab
commit
5135bae777
|
@ -1799,9 +1799,6 @@ bool Tokenizer::tokenizeCondition(const std::string &code)
|
||||||
// replace 'NULL' and similar '0'-defined macros with '0'
|
// replace 'NULL' and similar '0'-defined macros with '0'
|
||||||
simplifyNull();
|
simplifyNull();
|
||||||
|
|
||||||
// replace 'sin(0)' to '0' and other similar math expressions
|
|
||||||
simplifyMathExpressions();
|
|
||||||
|
|
||||||
// combine "- %num%"
|
// combine "- %num%"
|
||||||
concatenateNegativeNumberAndAnyPositive();
|
concatenateNegativeNumberAndAnyPositive();
|
||||||
|
|
||||||
|
@ -1824,9 +1821,6 @@ bool Tokenizer::tokenizeCondition(const std::string &code)
|
||||||
|
|
||||||
simplifyCAlternativeTokens();
|
simplifyCAlternativeTokens();
|
||||||
|
|
||||||
// Convert e.g. atol("0") into 0
|
|
||||||
simplifyMathFunctions();
|
|
||||||
|
|
||||||
simplifyDoublePlusAndDoubleMinus();
|
simplifyDoublePlusAndDoubleMinus();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue