Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
Qt Creator 3.0.0-rc1
-
None
-
9bdf8329a (master)
Description
When you use the "Swap Operands" QuickFix with an operand, that contains a macro it moves the first operand out of the if statement.
If the macro is on the left side of the expression the "Swap Operands" QuickFix isn't even available.
Before activating the QuickFix:
if (false && i != 5) { } if (false && i != TEST) { } #define TEST 5 if (false && i != TEST) { }
After:
if (i != 5 && false) { } if (i != TEST && false) { } #define TEST 5 if (i != TEST) { } && false
Attachments
Issue Links
- is duplicated by
-
QTCREATORBUG-15042 Swap Operands refactoring generates invalid code when a macro definition is involved
-
- Closed
-
- mentioned in
-
Page Loading...