Browse Source

Add clang-format definitions

Also add git-clang-format helper to help with }}}

Gbp-Dch: ignore
tags/debian/1.5_alpha1
Julian Andres Klode 4 years ago
parent
commit
3cb78eef6f
2 changed files with 11 additions and 0 deletions
  1. +9
    -0
      .clang-format
  2. +2
    -0
      git-clang-format.sh

+ 9
- 0
.clang-format View File

@@ -0,0 +1,9 @@
Language: Cpp
# BasedOnStyle

TabWidth: 8
UseTab: Always
IndentWidth: 3
ColumnLimit: 0
BreakBeforeBraces: Allman
AccessModifierOffset: 0

+ 2
- 0
git-clang-format.sh View File

@@ -0,0 +1,2 @@
#!/bin/sh
git clang-format-3.8 --diff "$@" | sed "s#+/\*\}\}\}\*/#+ /*}}}*/#" | patch -p1

Loading…
Cancel
Save