Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 4.12.0
-
None
Description
Tuple unpacking causes erroneous indentation example:
auto fun()
{ int a; double b; return std::make_tuple(a,b) }
void bar()
{ auto [a, b]= fun(); int i; // should not be indented }int main(){}
The parser is weak for lots of valid c++11 and up, but this one is annoying.
Attachments
Issue Links
- duplicates
-
QTCREATORBUG-19238 indentation is wrong with c++17 structured binding
- Closed
- is duplicated by
-
QTCREATORBUG-24009 C++17 structured binding syntax breaks indentation badly
- Closed