Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
Qt Creator 4.4.0-beta1
-
Ubuntu 16.10 64 bit
-
fc5b890290f393f6eb7ea124f9f2e3746274a41b (qt-creator/qt-creator/master)
Description
- Run Creator with enabled Clang Code Model.
- Have a simple conditional in your code:
if (1 && 0) return;
The condition is obviously always false.
- Move the cursor into the condition and ask for quick fixes using Alt+Enter.
- Select the quick fix "Apply Fix: Remove constant to silence this warning" and press Enter.
The code will be changed to:if (1) return;
Now the condition is always true.
The resulting code should do the same as before the quick fix.