Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 4.2.0
-
None
Description
When using the conditional operator ( ? : ) in the brace init list of a constructor's member initializer, automatic intendation in the remainder of the file gets broken. This is really annoying because it effects editing in parts of the file which are far away from the spot that triggered the issue.
struct B { int i; B(bool j) : i { j ? 0 : 1 } // naked "? :" triggers bug { ++i; // Wrong indentation } // Wrong indentation }; // Wrong indentation continues...
The bug does not occur when wrapping the conditional operator in parentheses.
Attachments
Issue Links
- duplicates
-
QTCREATORBUG-11183 Correct indentation doesn't work with brace initialization and the conditional assignment operator
-
- Closed
-