~ashn/setup

b442a8ece662903330574861e0c1f28ad757f53e — ashn 1 year, 1 month ago 23400cd
Add .clang-format to dotfiles
2 files changed, 5 insertions(+), 5 deletions(-)

M dotfiles/.clang-format
M setup-dotfiles.sh
M dotfiles/.clang-format => dotfiles/.clang-format +4 -5
@@ 1,7 1,6 @@
AlignAfterOpenBracket: AlwaysBreak
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
# AlignConsecutiveMacros: true  <-- Not available until clang-format-9 :(
AlignEscapedNewlines: Right
AlignOperands: false
AlignTrailingComments: false


@@ 9,8 8,8 @@ AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: TopLevel
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: true


@@ 22,13 21,13 @@ BreakConstructorInitializers: AfterColon
BreakStringLiterals: false
BraceWrapping:
  AfterClass:            true
  AfterControlStatement: true
  AfterControlStatement: false
  AfterEnum:             true
  AfterFunction:         true
  AfterNamespace:        true
  AfterStruct:           true
  AfterUnion:            true
  AfterExternBlock:      true
  AfterExternBlock:      false
  BeforeCatch:           true
  BeforeElse:            true
  IndentBraces:          false

M setup-dotfiles.sh => setup-dotfiles.sh +1 -0
@@ 3,6 3,7 @@ set -e
set -x

cp dotfiles/.bashrc ~/
cp dotfiles/.clang-format ~/
cp dotfiles/.gitconfig ~/
cp dotfiles/.gitignore ~/
cp dotfiles/.gitmessage ~/