Files
dotfiles/ClangFormat/.clang-format
Aryadev Chavali 25930bcd7c (ClangFormat)~fixing some extras that were annoying me
Things that kinda annoyed me about LLVM style which I wanted to clear up.
2021-11-29 03:04:01 +00:00

30 lines
774 B
YAML

# .clang-format -*- mode: yaml; lexical-binding: t; -*-
BasedOnStyle: LLVM
IndentWidth: 2
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: true
AlignConsecutiveBitFields: true
AlignConsecutiveMacros: true
AlignEscapedNewlines: true
AllowShortLoopsOnASingleLine: false
AllowShortFunctionsOnASingleLine: false
AllowShortLambdasOnASingleLine: false
AlwaysBreakTemplateDeclarations: Yes
NamespaceIndentation: All
BreakBeforeBraces: Custom
BraceWrapping:
AfterEnum: true
AfterStruct: true
AfterFunction: true
AfterNamespace: true
AfterClass: true
AfterUnion: true
AfterControlStatement: true
AfterExternBlock: true
BeforeLambdaBody: true
BeforeCatch: true
BeforeElse: true
IndentBraces: false
SplitEmptyFunction: false