Open AdamBucior opened 2 years ago
@llvm/issue-subscribers-clang-format
I agree. I want this feature too.
Whenever there is a lot of any sort of template metaprogramming, it's not uncommon for there to be types used simply as some sort of identifier.
+1 for this. I've seen a few threads asking for this dating back to at least clang 12, would love to have this.
When I format this example code:
With this
.clang-format
file:I get this ugly result:
I would like there to be an option to allow empty structs and classes on a single line (so that the example code is left unchanged) just like it is possible with functions by using
AllowShortFunctionsOnASingleLine
.