Fixed #9090 (Do not simplify standard functions)

This commit is contained in:
Daniel Marjamäki 2019-04-08 18:59:54 +02:00
parent 4bb06eceeb
commit 7610513c49
3 changed files with 1297 additions and 1295 deletions

View File

@ -4465,9 +4465,6 @@ bool Tokenizer::simplifyTokenList1(const char FileName[])
// Change initialisation of variable to assignment
simplifyInitVar();
// Convert e.g. atol("0") into 0
simplifyMathFunctions();
simplifyDoublePlusAndDoubleMinus();
simplifyArrayAccessSyntax();
@ -4502,6 +4499,9 @@ bool Tokenizer::simplifyTokenList2()
tok->clearValueFlow();
}
// Convert e.g. atol("0") into 0
simplifyMathFunctions();
// f(x=g()) => x=g(); f(x)
simplifyAssignmentInFunctionCall();

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff