The clang format setting BreakAfterAttributes: Leave Does not leave the line break(s) between attributes.
Expected formatting:
[[deprecated("Don't use this version")]]
[[nodiscard]]
bool Test() {
return true;
}
[[deprecated("Don't use this version")]]
[[nodiscard]] bool Test2() {
return true;
}
Actual formatting:
[[deprecated("Don't use this version")]] [[nodiscard]]
bool Test() {
return true;
}
[[deprecated("Don't use this version")]] [[nodiscard]] bool Test2() {
return true;
}
clang-format version: 19.1.5