[PATCH] Update to clang-format script
김규래
msca8h@naver.com
Sun Jun 23 09:39:00 GMT 2019
GNU style brace wrapping rules have been added to clang-format quite a while ago.
http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Format/Format.h?revision=197138&view=markup
This simple patch proposes to use the built-in rules instead of the custom brace rules.
Ray Kim
2019-06-27 Ray Kim <msca8h@naver.com>
* contrib/clang-format: Changed the custom brace wrapping rules to built-in GNU style.
diff --git a/contrib/clang-format b/contrib/clang-format
index d734001c06f..3ebb85fff77 100644
--- a/contrib/clang-format
+++ b/contrib/clang-format
@@ -25,20 +25,8 @@ AccessModifierOffset: -2
AlwaysBreakAfterDefinitionReturnType: All
BinPackArguments: true
BinPackParameters: true
-BraceWrapping:
- AfterClass: true
- AfterControlStatement: true
- AfterEnum: true
- AfterFunction: true
- AfterNamespace: false
- AfterObjCDeclaration: true
- AfterStruct: true
- AfterUnion: true
- BeforeCatch: true
- BeforeElse: true
- IndentBraces: true
BreakBeforeBinaryOperators: All
-BreakBeforeBraces: Custom
+BreakBeforeBraces: GNU
BreakBeforeTernaryOperators: true
ColumnLimit: 80
ConstructorInitializerIndentWidth: 2
More information about the Gcc-patches
mailing list