2020-09-05 05:36:52 +08:00
|
|
|
---
|
|
|
|
Language: Cpp
|
2020-09-25 01:35:54 +08:00
|
|
|
BasedOnStyle: LLVM
|
2020-09-05 05:36:52 +08:00
|
|
|
AlignConsecutiveAssignments: true
|
2021-01-28 07:51:59 +08:00
|
|
|
#llvm11: AlignConsecutiveBitFields: false
|
2020-09-05 05:36:52 +08:00
|
|
|
AlignConsecutiveDeclarations: true
|
2021-02-26 05:12:57 +08:00
|
|
|
AlignConsecutiveMacros: true
|
2021-01-28 07:51:59 +08:00
|
|
|
#llvm10-11: AlignOperands: true - Align
|
|
|
|
#llvm11: AllowShortEnumsOnASingleLine: true
|
2020-09-05 05:36:52 +08:00
|
|
|
AlwaysBreakAfterReturnType: AllDefinitions
|
2020-10-07 06:37:42 +08:00
|
|
|
# Can enable the following section when llvm 12.x is out
|
|
|
|
#AttributeMacros:
|
|
|
|
# - H5_ATTR_FORMAT
|
|
|
|
# - H5_ATTR_UNUSED
|
|
|
|
# - H5_ATTR_DEPRECATED_USED
|
|
|
|
# - H5_ATTR_NDEBUG_UNUSED
|
|
|
|
# - H5_ATTR_DEBUG_API_USED
|
|
|
|
# - H5_ATTR_PARALLEL_UNUSED
|
|
|
|
# - H5_ATTR_PARALLEL_USED
|
|
|
|
# - H5_ATTR_NORETURN
|
|
|
|
# - H5_ATTR_CONST
|
|
|
|
# - H5_ATTR_PURE
|
|
|
|
# - H5_ATTR_FALLTHROUGH
|
2020-09-05 05:36:52 +08:00
|
|
|
BraceWrapping:
|
|
|
|
AfterFunction: true
|
2021-01-28 07:51:59 +08:00
|
|
|
#llvm10-11: AfterControlStatement: false - Never
|
2020-09-05 05:36:52 +08:00
|
|
|
BeforeCatch: true
|
|
|
|
BeforeElse: true
|
2021-01-28 07:51:59 +08:00
|
|
|
#llvm11: BeforeLambdaBody: false
|
|
|
|
#llvm11: BeforeWhile: false
|
2020-09-05 05:36:52 +08:00
|
|
|
BreakBeforeBraces: Stroustrup
|
|
|
|
BreakAfterJavaFieldAnnotations: true
|
|
|
|
BreakStringLiterals: true
|
2020-10-07 06:37:42 +08:00
|
|
|
ColumnLimit: 110 # Update $max_trace_macro_line_len in bin/trace also
|
2020-09-05 05:36:52 +08:00
|
|
|
IncludeCategories:
|
|
|
|
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
|
|
|
|
Priority: 3
|
|
|
|
SortPriority: 0
|
|
|
|
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
|
|
|
|
Priority: 4
|
|
|
|
SortPriority: 0
|
|
|
|
- Regex: '.*'
|
|
|
|
Priority: 0
|
|
|
|
SortPriority: 0
|
|
|
|
- Regex: '^H5*.*'
|
|
|
|
Priority: 1
|
|
|
|
SortPriority: 0
|
|
|
|
- Regex: 'private.*'
|
|
|
|
Priority: 2
|
|
|
|
SortPriority: 0
|
|
|
|
IncludeIsMainRegex: '(public)?$'
|
|
|
|
IndentCaseLabels: true
|
2021-01-28 07:51:59 +08:00
|
|
|
#llvm11: IndentCaseBlocks: false
|
2020-09-05 05:36:52 +08:00
|
|
|
IndentGotoLabels: false
|
2021-01-28 07:51:59 +08:00
|
|
|
#llvm11: IndentExternBlock: AfterExternBlock
|
2020-09-05 05:36:52 +08:00
|
|
|
IndentWidth: 4
|
2021-01-28 07:51:59 +08:00
|
|
|
#llvm11: InsertTrailingCommas: None
|
2020-10-07 06:37:42 +08:00
|
|
|
MacroBlockBegin: "^BEGIN_FUNC"
|
|
|
|
MacroBlockEnd: "^END_FUNC"
|
2020-09-05 05:36:52 +08:00
|
|
|
ObjCBlockIndentWidth: 4
|
2021-01-28 07:51:59 +08:00
|
|
|
#llvm11: ObjCBreakBeforeNestedBlockParam: true
|
2020-09-05 05:36:52 +08:00
|
|
|
ReflowComments: true
|
|
|
|
SortIncludes: false
|
|
|
|
StatementMacros:
|
|
|
|
- FUNC_ENTER_API
|
|
|
|
- FUNC_LEAVE_API
|
|
|
|
- FUNC_ENTER_NOAPI_NOINIT_NOERR
|
|
|
|
- FUNC_LEAVE_NOAPI
|
|
|
|
- H5_BEGIN_TAG
|
|
|
|
- HGOTO_DONE_TAG
|
|
|
|
- H5_END_TAG
|
|
|
|
- HSYS_DONE_ERROR
|
|
|
|
- HSYS_GOTO_ERROR
|
|
|
|
- HDONE_ERROR
|
|
|
|
- HERROR
|
|
|
|
- H5_LEAVE
|
|
|
|
- H5E_PRINTF
|
|
|
|
- H5E_THROW
|
|
|
|
- HGOTO_DONE
|
|
|
|
- HGOTO_ERROR
|
|
|
|
- HMPI_ERROR
|
|
|
|
- HMPI_DONE_ERROR
|
|
|
|
- HMPI_GOTO_ERROR
|
|
|
|
- H5_GCC_DIAG_OFF
|
|
|
|
- H5_GCC_DIAG_ON
|
2020-10-07 06:37:42 +08:00
|
|
|
- CATCH
|
2021-01-28 07:51:59 +08:00
|
|
|
#llvm10: TypenameMacros:
|
|
|
|
#llvm10: - STACK_OF
|
|
|
|
#llvm10: - LIST
|
|
|
|
#llvm11: WhitespaceSensitiveMacros:
|
|
|
|
#llvm11: - STRINGIZE
|
|
|
|
#llvm11: - PP_STRINGIZE
|
2020-09-05 05:36:52 +08:00
|
|
|
...
|
|
|
|
|