Skip to content

Commit

Permalink
updated clang-format style config
Browse files Browse the repository at this point in the history
  • Loading branch information
rongxin-liu committed Sep 12, 2023
1 parent 94f1da6 commit dde890b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion style50/languages.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class C(StyleCheck):
extensions = ["c", "h", "cpp", "hpp"]
magic_names = [] # Only recognize C files by their extension

styleConfig = '{"UseTab":true,"IndentWidth":4,"BreakBeforeBraces":"Allman","AllowShortIfStatementsOnASingleLine":false,"IndentCaseLabels":false,"ColumnLimit":0}'
styleConfig = '{ AllowShortFunctionsOnASingleLine: Empty, BraceWrapping: { AfterCaseLabel: true, AfterControlStatement: true, AfterFunction: true, AfterStruct: true, BeforeElse: true, BeforeWhile: true }, BreakBeforeBraces: Custom, ColumnLimit: 132, IndentCaseLabels: true, IndentWidth: 4, SpaceAfterCStyleCast: true, TabWidth: 4 }'
clangFormat = [
"clang-format", f"-style={styleConfig}"
]
Expand Down

0 comments on commit dde890b

Please sign in to comment.