diff options
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/.clang-format b/.clang-format index 62dc6b5..b51da2a 100644 --- a/.clang-format +++ b/.clang-format @@ -1,7 +1,20 @@ --- -Language: Cpp BasedOnStyle: LLVM AlignConsecutiveAssignments: true +BraceWrapping: + AfterFunction: true + #llvm10-11: AfterControlStatement: false - Never + BeforeCatch: true + BeforeElse: true + #llvm11: BeforeLambdaBody: false + #llvm11: BeforeWhile: false +BreakBeforeBraces: Stroustrup +BreakAfterJavaFieldAnnotations: true +BreakStringLiterals: true +ColumnLimit: 110 # Update $max_trace_macro_line_len in bin/trace also +IndentWidth: 4 +--- +Language: Cpp #llvm11: AlignConsecutiveBitFields: false AlignConsecutiveDeclarations: true AlignConsecutiveMacros: true @@ -22,17 +35,6 @@ AlwaysBreakAfterReturnType: AllDefinitions # - H5_ATTR_CONST # - H5_ATTR_PURE # - H5_ATTR_FALLTHROUGH -BraceWrapping: - AfterFunction: true - #llvm10-11: AfterControlStatement: false - Never - BeforeCatch: true - BeforeElse: true - #llvm11: BeforeLambdaBody: false - #llvm11: BeforeWhile: false -BreakBeforeBraces: Stroustrup -BreakAfterJavaFieldAnnotations: true -BreakStringLiterals: true -ColumnLimit: 110 # Update $max_trace_macro_line_len in bin/trace also ForEachMacros: ['ALL_MEMBERS', 'UNIQUE_MEMBERS'] IncludeCategories: - Regex: '^"(llvm|llvm-c|clang|clang-c)/' @@ -55,7 +57,6 @@ IndentCaseLabels: true #llvm11: IndentCaseBlocks: false IndentGotoLabels: false #llvm11: IndentExternBlock: AfterExternBlock -IndentWidth: 4 #llvm11: InsertTrailingCommas: None MacroBlockBegin: "^BEGIN_FUNC" MacroBlockEnd: "^END_FUNC" @@ -92,5 +93,8 @@ StatementMacros: #llvm11: WhitespaceSensitiveMacros: #llvm11: - STRINGIZE #llvm11: - PP_STRINGIZE +--- +Language: Java +BreakAfterJavaFieldAnnotations: true +JavaImportGroups: ['java', 'hdf', 'hdf.hdf5lib', 'org'] ... - |