-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
Qt Creator 3.5.0, Qt Creator 4.6.0 , Qt Creator 4.13.0
-
OS X 10.10.5 – 10.14.6
In one of my source files, suddenly Creator wants to indent everything by 6 indents (24 spaces). This happens at any location in the source file beyond a certain point.
I managed to create the following minimal example (which I cannot reduce further):
#define GGG(ARG) void g() { }
GGG(ARG)
inline int operator >> (int, int) { }
#define FFF void f() {}
FFF
Put this in a .h file, save it, move the cursor right after FFF and press enter. Creator will indent everything by 6 indents.
Please ignore whether the code makes sense, it's just a minimal example. The actual code compiles fine and uses simple macros with arguments to avoid repetitive typing when interfacing with a C library.
| For Gerrit Dashboard: QTCREATORBUG-15069 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 542773,5 | CppEditor: Let users provide statement macros | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |