forked from team-charls/charls
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.clang-format
44 lines (38 loc) · 1.02 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
43
44
# Copyright (c) Team CharLS.
# SPDX-License-Identifier: BSD-3-Clause
BasedOnStyle: LLVM
Language: Cpp
Standard: Latest
UseTab: Never
IndentWidth: 4
PointerAlignment: Left
# Use the github de facto limit of 125
ColumnLimit: 125
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: true
AfterControlStatement: true
AfterEnum: true
AfterFunction: true
AfterNamespace: false
AfterObjCDeclaration: true
AfterStruct: true
AfterUnion: true
BeforeCatch: true
BeforeElse: true
IndentBraces: false
AccessModifierOffset: -4
AlignTrailingComments: true
AlignEscapedNewlines: DontAlign
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
AlwaysBreakTemplateDeclarations: true
BreakConstructorInitializers: AfterColon
CompactNamespaces: true
ConstructorInitializerAllOnOneLineOrOnePerLine: true
SpaceAfterTemplateKeyword: false
SpaceBeforeCpp11BracedList: false
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 2
NamespaceIndentation: None
StatementMacros: ['TEST_CLASS', 'TEST_METHOD']