Skip to content

Commit

Permalink
Add clang-format configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
marsupial authored and sftnight committed Feb 21, 2017
1 parent df47b12 commit af6d962
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .clang-format
@@ -0,0 +1,28 @@

BasedOnStyle: LLVM
IndentWidth: 2
ColumnLimit: 80

Language: Cpp
Standard: Cpp11
DerivePointerAlignment: false
PointerAlignment: Left

AlignAfterOpenBracket: Align
PenaltyBreakBeforeFirstCallParameter: 50
AlignOperands: true
AllowShortIfStatementsOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: true
IndentCaseLabels: true

IncludeCategories:
- Regex: '^"[^/]+\"'
Priority: 10
- Regex: '^"cling/'
Priority: 20
- Regex: '^"clang/'
Priority: 30
- Regex: '^"llvm/'
Priority: 40
- Regex: '^<'
Priority: 50

0 comments on commit af6d962

Please sign in to comment.