Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
Qt Creator 4.7.0
-
None
Description
The following code breaks indentation for the rest of the file, after the x[p=n] line :
int main() { int x[1]; int p=0, n=0; x[p=n]; if(1) { } }
I'm using the clang code model if it can be of any use.
Attachments
Issue Links
- is duplicated by
-
QTCREATORBUG-14387 C++ IDE formatting bug (minor)
- Closed
-
QTCREATORBUG-17431 Incorrect indentation after uniform initialization with a subscripted variable as argument.
- Closed
-
QTCREATORBUG-21223 Usage of structured bindings break indentation
- Closed
-
QTCREATORBUG-18049 Operator[] in initializer list breaks auto-indent, when used to assign variable
- Closed
- relates to
-
QTCREATORBUG-12391 Wrong stream op indentation after array with >=2 dimensions
- Closed
-
QTCREATORBUG-19238 indentation is wrong with c++17 structured binding
- Closed