Omit unneeded computations
This commit is contained in:
parent
02a1b7cd2d
commit
cf6d3ba398
|
@ -1052,8 +1052,13 @@ void CheckCondition::alwaysTrueFalse()
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (isExpandedMacro)
|
||||
continue;
|
||||
for (const Token *parent = tok; parent; parent = parent->astParent()) {
|
||||
isExpandedMacro |= parent->isExpandedMacro();
|
||||
if (parent->isExpandedMacro()) {
|
||||
isExpandedMacro = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (isExpandedMacro)
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue