Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 2.7.0, Qt Creator 2.8.0-beta
-
None
-
a8c858acdd264bed457b09d2b7030280b3fde7d2
Description
Since somewhat recently, using the C++11 way of closing template argument lists without spacing no longer gets underlined as a syntax error.
However the auto-indent feature still seems to recognize the double right-angle bracket (>>) as the operator when used in the return type of a function implementation.
foo<foo<bar>> foo1; //Declaring a variable //OK void baz(foo<foo<bar>> foo2){ //OK } foo<foo<bar>> baz(){ //Implementing a function //Not OK //Expected position }//Not OK either //Even less OK
The shift in the indentation continues until it a semicolon is encountered outside a function.
Attachments
Issue Links
- relates to
-
QTCREATORBUG-9640 Auto indentation is broken when I use templated default template parameter
- Closed
- replaces
-
QTCREATORBUG-9851 Wrong indentation when using C++11 types like QList<QSharedPointer<int>>
- Closed
-
QTCREATORBUG-10432 Weird indentation in C++11 nested templates
- Closed
-
QTCREATORBUG-10552 Wrong indentation
- Closed
-
QTCREATORBUG-10996 Incorrect Indentation - C++11 Template Syntax
- Closed
For Gerrit Dashboard: QTCREATORBUG-9199 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
80990,1 | CppTools: Fix indent after ">>" in return type | master | qt-creator/qt-creator | Status: ABANDONED | -1 | 0 |
81141,1 | CppTools: Fix indent after ">>" in return type | 3.1 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |