Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 4.11.0
-
None
-
-
02f2841a4176d82d025fc25343f3d4eb6754a9e0 (qt-creator/qt-creator/master)
Description
Code like this breaks Creator's indentation:
auto foo() -> std::vector<std::tuple<int, int, int>>
After pressing enter, the indent is placed way over to the right. The part that seems to be confusing the editor is the ">>", since putting a space in-between prevents it from happening.
Enabling the clang format plugin indeed fixes the issue. However, I had explicitly disabled that plugin because enabling it causes a major slowdown while editing big source files that contain tens of thousands of lines. Pressing enter for example to add a new line takes 5 seconds, which makes that plugin completely unusable as editing code with this kind of delay makes writing code impossible.
Attachments
For Gerrit Dashboard: QTCREATORBUG-23502 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
302873,2 | CppTools: Fix formatting for new-style function declaration | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |