You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the BreakAfterAttributes option in clang-format 16 is set to Always, it introduces a newline after attributes for member functions, but not for constructors. It seems like it should break after attributes for constructors as well.
Here's the commit the option was added in: a28f074
The comment True if breaking after last attribute group in function return type implies that the attribute breaking is tied to the return type, but constructors don't have return types.
When the
BreakAfterAttributes
option in clang-format 16 is set toAlways
, it introduces a newline after attributes for member functions, but not for constructors. It seems like it should break after attributes for constructors as well.Example input in a file called Test.cpp:
Command:
clang-format --style="{BreakAfterAttributes: Always}" Test.cpp
Expected output:
Actual output:
The text was updated successfully, but these errors were encountered: