Skip to content

Commit

Permalink
clang-format: Disable brace wrapping for structs
Browse files Browse the repository at this point in the history
I want to be able to define unit structs on a single line, like this:
    struct Success {};
  • Loading branch information
lnjX committed Mar 14, 2024
1 parent 46f2f3d commit 1de0740
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ BasedOnStyle: WebKit
BraceWrapping:
AfterClass: true
AfterFunction: true
AfterStruct: true
AfterStruct: false
SplitEmptyRecord: false
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Custom
BreakBeforeTernaryOperators: true
Expand Down

0 comments on commit 1de0740

Please sign in to comment.