Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 4.6.0-beta1, Qt Creator 4.7.0-beta1, Qt Creator 7.0.0
-
None
Description
When typing a C++17 structured binding declaration and pressing enter, QtCreator increases the indentation of the next line by two units.
For example, try typing the following code:
std::map< int, int > m; auto [it, new_element] = m.insert(std::make_pair(1, 10));
After I press Enter at the end of the second line, the next line gets indented two tabs deeper. QtCreator keeps adding the two tabs even after some properly indented code after the structured binding.