summaryrefslogtreecommitdiffstats
path: root/.clang-format
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2021-01-27 23:51:59 (GMT)
committerGitHub <noreply@github.com>2021-01-27 23:51:59 (GMT)
commit5a812bf5197e3394b92f5df8ee103a5eb80da18d (patch)
treef851f1b71f4547cd9a04b2f916d223ad63e89e2d /.clang-format
parent9524dc494f0e62c7b6b82941c34552d2e2bb1283 (diff)
downloadhdf5-5a812bf5197e3394b92f5df8ee103a5eb80da18d.zip
hdf5-5a812bf5197e3394b92f5df8ee103a5eb80da18d.tar.gz
hdf5-5a812bf5197e3394b92f5df8ee103a5eb80da18d.tar.bz2
develop clang-format comments (#286)
* OESS-98 convert plugin option to FetchContent, add tests * Fixes for pkcfg files because of plugin option * OESS-98 fix tools test for plugins * Keep doxygen comments under 100 chars long - format hint * Whitespace * HDFFV-11144 - Reclassify CMake messages * HDFFV-11099/11100 added help text * Reworked switch statement to compare string instead * Fix typo * Update CDash mode * Correct name of threadsafe * Correct option name * Undo accidental commit * Note LLVM 10 to 11 format default changes
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format16
1 files changed, 16 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
index 5b7d76f..979e0c5 100644
--- a/.clang-format
+++ b/.clang-format
@@ -3,7 +3,10 @@ Language: Cpp
BasedOnStyle: LLVM
AlignConsecutiveMacros: true
AlignConsecutiveAssignments: true
+#llvm11: AlignConsecutiveBitFields: false
AlignConsecutiveDeclarations: true
+#llvm10-11: AlignOperands: true - Align
+#llvm11: AllowShortEnumsOnASingleLine: true
AlwaysBreakAfterReturnType: AllDefinitions
# Can enable the following section when llvm 12.x is out
#AttributeMacros:
@@ -20,8 +23,11 @@ AlwaysBreakAfterReturnType: AllDefinitions
# - 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
@@ -44,11 +50,15 @@ IncludeCategories:
SortPriority: 0
IncludeIsMainRegex: '(public)?$'
IndentCaseLabels: true
+#llvm11: IndentCaseBlocks: false
IndentGotoLabels: false
+#llvm11: IndentExternBlock: AfterExternBlock
IndentWidth: 4
+#llvm11: InsertTrailingCommas: None
MacroBlockBegin: "^BEGIN_FUNC"
MacroBlockEnd: "^END_FUNC"
ObjCBlockIndentWidth: 4
+#llvm11: ObjCBreakBeforeNestedBlockParam: true
ReflowComments: true
SortIncludes: false
StatementMacros:
@@ -74,5 +84,11 @@ StatementMacros:
- H5_GCC_DIAG_OFF
- H5_GCC_DIAG_ON
- CATCH
+#llvm10: TypenameMacros:
+#llvm10: - STACK_OF
+#llvm10: - LIST
+#llvm11: WhitespaceSensitiveMacros:
+#llvm11: - STRINGIZE
+#llvm11: - PP_STRINGIZE
...