Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 4.13.0-rc1
-
None
Description
Consider the code below.
If pressing enter at the end of the line with 'auto', the indentation suddenly jumps to 12 characters (instead of the expected 4).
It does not only mess up the indentation at that single location, but at all points beyond it in the file. This makes Creator quite unusable with any source file that makes use of structured bindings.
This happens in 4.12.3, as well as 4.13 RC1.
#include <utility> std::pair<int,int> f() { return {1,2}; } void g() { auto [x,y] = f(); }
Attachments
Issue Links
- duplicates
-
QTCREATORBUG-19238 indentation is wrong with c++17 structured binding
- Closed