Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
Qt Creator 14.0.2, Qt Creator 16.0.0
-
None
-
0142ff8d5 (master)
Description
Given the following snippet:
template <typename T>
void foo() {
static_assert(sizeof(T) > 0, "incomplete type");
}
When: placing the cursor after the , and hitting return
Then: the following line is indented 8 SP w.r..t to the static_assert:
Not even CTRL-I will change that.
Expected: indented to one after the opening ( of the static_assert:
Rationale: If it looks like a function, it should be formatted like a function. If I change static_assert to a function, it indents as expected:
Attachments
Issue Links
- relates to
-
QTCREATORBUG-32666 QtC misindents body of constexpr-if
-
- Closed
-