forked from sumatrapdfreader/sumatrapdf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-format
More file actions
27 lines (23 loc) · 753 Bytes
/
Copy path.clang-format
File metadata and controls
27 lines (23 loc) · 753 Bytes
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
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
# Easy way to check some of the flags: https://clangformat.com/
BasedOnStyle: Chromium
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLoopsOnASingleLine: true
# Prevents collapsing even short enums to one line
AllowShortEnumsOnASingleLine: false
# Aligns the enumerators vertically after the {
AlignAfterOpenBracket: Align
IndentWidth: 4
ColumnLimit: 120
AccessModifierOffset: -2
PointerAlignment: Left
SpacesBeforeTrailingComments: 1
BinPackParameters: true
Cpp11BracedListStyle: true
SortIncludes: false
# AlignArrayOfStructures: Left
Language: Cpp
Standard: c++17
# AlignArrayOfStructures: Left
# AllowShortBlocksOnASingleLine: Never