forked from OpenSC/OpenSC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
42 lines (40 loc) · 1.09 KB
/
.clang-format
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
BasedOnStyle: LLVM
# defaults from LLVM
# BreakBeforeBraces: Attach
# AllowShortIfStatementsOnASingleLine: Never
# IndentCaseLabels: false
# AlignAfterOpenBracket: Align
# AlignTrailingComments: true
# MaxEmptyLinesToKeep: 1
# ReflowComments: falsedefault
# SortIncludes: true
# BreakBeforeBinaryOperators: None
# BraceWrapping:
# AfterClass: false
# AfterControlStatement: false
# AfterFunction: false
# AfterNamespace: false
# BeforeCatch: false
# BeforeElse: false
# IndentBraces: false
# OpenSC modifications
TabWidth: 8
IndentWidth: 8
ContinuationIndentWidth: 16
AlignAfterOpenBracket: DontAlign
UseTab: Always
AlignConsecutiveMacros: true
AlignEscapedNewlines: DontAlign
AllowShortFunctionsOnASingleLine: None
AlwaysBreakAfterReturnType: AllDefinitions
## This prevents reflowing intentionally short lines but
## it can be allowed only after we will have some baseline
ColumnLimit: 0
#ColumnLimit: 110
IndentCaseBlocks: false
AlignArrayOfStructures: Left
BreakBeforeBraces: Custom
BraceWrapping:
AfterObjCDeclaration: true
AfterUnion: true
AfterFunction: true