Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 4.14.0
-
None
-
Windows 10. Qt Creator 4.14.0
Description
Minimum code to reproduce bug:
#include <tuple> std::tuple<int, bool> getIntBool() { return std::make_tuple(100, true); } int main(int argc, char *argv[]) { auto [myint, mybool] = getIntBool(); int broken_indentation = myint; //Extra indentation bool it_continues = mybool; return 0; }
After string "auto [myint, mybool] = getIntBool();" Qt Creator indents all following lines wrongly with 8 extra spaces.
What expected is no extra indentation and code should look like this:
#include <tuple> std::tuple<int, bool> getIntBool() { return std::make_tuple(100, true); } int main(int argc, char *argv[]) { auto [myint, mybool] = getIntBool(); int broken_indentation = myint; bool it_continues = mybool; return 0; }
Attachments
Issue Links
- duplicates
-
QTCREATORBUG-19238 indentation is wrong with c++17 structured binding
- Closed