summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2022-02-12 15:00:34 +1100
committerGitHub <noreply@github.com>2022-02-11 20:00:34 -0800
commite596ece87aac51f053f1f26f5f5bff964d7c351a (patch)
tree684cbe8a47acf1c048fe1f2d6b5f4fc1deba585c /.clang-format
parent17c0ca6fa4f7b6f65b4442c2f5bc32fee914b376 (diff)
downloadqmk_firmware-e596ece87aac51f053f1f26f5f5bff964d7c351a.tar.gz
qmk_firmware-e596ece87aac51f053f1f26f5f5bff964d7c351a.zip
Clang-format tweaks (#15906)
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format4
1 files changed, 4 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
index b4f7967831..ce145e299c 100644
--- a/.clang-format
+++ b/.clang-format
@@ -5,6 +5,9 @@ AlignConsecutiveAssignments: 'true'
AlignConsecutiveDeclarations: 'true'
AlignOperands: 'true'
AllowAllParametersOfDeclarationOnNextLine: 'false'
+AllowShortCaseLabelsOnASingleLine: 'false'
+AllowShortFunctionsOnASingleLine: Empty
+AllowShortLoopsOnASingleLine: 'false'
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: 'false'
@@ -20,6 +23,7 @@ SortIncludes: 'false'
SpaceBeforeAssignmentOperators: 'true'
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: 'false'
+SpacesBeforeTrailingComments: 1
TabWidth: '4'
UseTab: Never