We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36a55d2 commit adb7623Copy full SHA for adb7623
1 file changed
lib/symboldatabase.cpp
@@ -1629,12 +1629,12 @@ namespace {
1629
if (key.operand1 > key.operand2 && key.operand2 &&
1630
Token::Match(tok->astParent(), "%or%|%oror%|+|*|&|&&|^|==|!=")) {
1631
// In C++ the order of operands of + might matter
1632
- if (!cpp ||
1633
- key.parentOp != "+" ||
1634
- !tok->astParent()->valueType() ||
1635
- tok->astParent()->valueType()->isIntegral() ||
1636
- tok->astParent()->valueType()->isFloat() ||
1637
- tok->astParent()->valueType()->pointer > 0)
+ if (!cpp ||
+ key.parentOp != "+" ||
+ !tok->astParent()->valueType() ||
+ tok->astParent()->valueType()->isIntegral() ||
+ tok->astParent()->valueType()->isFloat() ||
+ tok->astParent()->valueType()->pointer > 0)
1638
std::swap(key.operand1, key.operand2);
1639
}
1640
0 commit comments