diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-09-11 12:04:13 +0200 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-09-11 12:04:13 +0200 |
commit | 6caeef997a5a908f1f07e6e549f888f857990400 (patch) | |
tree | 7d3077ebf69cc2d6f3cd8378256537cc0f2db34f /clang-format | |
parent | de92a6911ea33f210246b53d76258a0b18c7fc0c (diff) | |
download | dotfiles-6caeef997a5a908f1f07e6e549f888f857990400.tar.gz dotfiles-6caeef997a5a908f1f07e6e549f888f857990400.zip |
update clang-formatmaster
Diffstat (limited to 'clang-format')
-rw-r--r-- | clang-format | 103 |
1 files changed, 7 insertions, 96 deletions
diff --git a/clang-format b/clang-format index cc75bce..1c7765b 100644 --- a/clang-format +++ b/clang-format @@ -1,104 +1,15 @@ # dotfiles -- clang-format # author: johannst # doc : https://clang.llvm.org/docs/ClangFormatStyleOptions.html +--- Language: Cpp -Standard: Auto +BasedOnStyle: Chromium + +AllowShortFunctionsOnASingleLine: None AccessModifierOffset: -2 -AlignAfterOpenBracket: Align +IndentWidth: 2 + AlignConsecutiveMacros: true -AlignConsecutiveAssignments: false -AlignConsecutiveDeclarations: false -AlignEscapedNewlines: Left -AlignOperands: true -AlignTrailingComments: true -AllowAllArgumentsOnNextLine: true -AllowAllConstructorInitializersOnNextLine: true -AllowAllParametersOfDeclarationOnNextLine: true -AllowShortBlocksOnASingleLine: false -AllowShortCaseLabelsOnASingleLine: false -AllowShortFunctionsOnASingleLine: Inline -AllowShortIfStatementsOnASingleLine: Never -AllowShortLambdasOnASingleLine: All -AllowShortLoopsOnASingleLine: false -AlwaysBreakAfterReturnType: None -AlwaysBreakBeforeMultilineStrings: true -AlwaysBreakTemplateDeclarations: Yes -BinPackArguments: true -BinPackParameters: true -BreakBeforeBraces: Custom -BraceWrapping: - AfterCaseLabel: false - AfterClass: false - AfterControlStatement: false - AfterEnum: false - AfterFunction: false - AfterNamespace: false - AfterStruct: false - AfterUnion: false - AfterExternBlock: false - BeforeCatch: false - BeforeElse: false - IndentBraces: false - SplitEmptyFunction: true - SplitEmptyRecord: true - SplitEmptyNamespace: true -BreakBeforeBinaryOperators: None -BreakBeforeTernaryOperators: true -BreakConstructorInitializers: AfterColon -BreakConstructorInitializersBeforeComma: false -BreakInheritanceList: BeforeColon -BreakBeforeInheritanceComma: false -BreakStringLiterals: true -ColumnLimit: 140 -CompactNamespaces: true -ConstructorInitializerAllOnOneLineOrOnePerLine: false -ConstructorInitializerIndentWidth: 2 -ContinuationIndentWidth: 4 -Cpp11BracedListStyle: true -DerivePointerAlignment: false -DisableFormat: false -ExperimentalAutoDetectBinPacking: false -FixNamespaceComments: true -IncludeBlocks: Preserve -# Could use `IncludeCategories` to define rules for includes -IndentCaseLabels: true -IndentPPDirectives: AfterHash -IndentWidth: 4 -IndentWrappedFunctionNames: false -KeepEmptyLinesAtTheStartOfBlocks: false -MacroBlockBegin: '' -MacroBlockEnd: '' -MaxEmptyLinesToKeep: 2 -NamespaceIndentation: All -PenaltyBreakAssignment: 2 -PenaltyBreakBeforeFirstCallParameter: 1 -PenaltyBreakComment: 300 -PenaltyBreakFirstLessLess: 120 -PenaltyBreakString: 1000 -PenaltyBreakTemplateDeclaration: 10 -PenaltyExcessCharacter: 1000000 -PenaltyReturnTypeOnItsOwnLine: 200 -PointerAlignment: Left -ReflowComments: true -SortIncludes: true -SortUsingDeclarations: true -SpaceAfterCStyleCast: false -SpaceAfterLogicalNot: false -SpaceAfterTemplateKeyword: false -SpaceBeforeAssignmentOperators: true -SpaceBeforeCpp11BracedList: false -SpaceBeforeCtorInitializerColon: true -SpaceBeforeInheritanceColon: true -SpaceBeforeParens: ControlStatements -SpaceBeforeRangeBasedForLoopColon: true -SpaceInEmptyParentheses: false -SpacesBeforeTrailingComments: 2 -SpacesInAngles: false -SpacesInCStyleCastParentheses: false -SpacesInContainerLiterals: true -SpacesInParentheses: false -SpacesInSquareBrackets: false -TabWidth: 4 -UseTab: Never +AlignConsecutiveAssignments: true |