[clang-format] Add an option to configure C++ attributes #58102
Closed
Description
When there are too many attributes, functions tend to get formatted like this:
[[attr1, attr2, attr3, attr4]] __keyword_attr constexpr void
f(args...);It'd be nice if this were configurable, so that we could also have
// option 1
[[attr1, attr2, attr3, attr4]] __keyword_attr
constexpr void f(args...);
// option 2
[[attr1, attr2, attr3, attr4]]
__keyword_attr constexpr void f(args...);
Activity