Last active
June 27, 2024 20:05
-
-
Save bernhardmgruber/6576ae1cb64d6b911e112e1c929ad448 to your computer and use it in GitHub Desktop.
.clang-format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# see https://clang.llvm.org/docs/ClangFormatStyleOptions.html | |
BasedOnStyle: LLVM | |
AccessModifierOffset: -4 | |
AlignAfterOpenBracket: DontAlign | |
AlignOperands: true | |
AlignTrailingComments: true | |
AllowShortBlocksOnASingleLine: Empty | |
AllowShortCaseLabelsOnASingleLine: true | |
AllowShortIfStatementsOnASingleLine: Never | |
AllowShortLoopsOnASingleLine: false | |
AlwaysBreakBeforeMultilineStrings: true | |
AlwaysBreakTemplateDeclarations: Yes | |
BreakBeforeBraces: Custom | |
BraceWrapping: | |
SplitEmptyFunction: false | |
SplitEmptyRecord: false | |
SplitEmptyNamespace: false | |
BreakStringLiterals: true | |
ColumnLimit: 120 | |
FixNamespaceComments: false | |
IncludeBlocks: Regroup | |
IndentCaseLabels: true | |
IndentPPDirectives: AfterHash | |
IndentWidth: 4 | |
KeepEmptyLinesAtTheStartOfBlocks: false | |
MaxEmptyLinesToKeep: 2 | |
NamespaceIndentation: All | |
PointerAlignment: Left | |
QualifierAlignment: Left | |
RemoveBracesLLVM: true | |
#RemoveSemicolon: true # clang-format 16 | |
SpaceAfterTemplateKeyword: true | |
Standard: Latest | |
TabWidth: 4 | |
UseTab: AlignWithSpaces |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment