-
Notifications
You must be signed in to change notification settings - Fork 7
/
clang-format.txt
78 lines (75 loc) · 2.33 KB
/
clang-format.txt
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# This isn't enabled because clangformat messes things up pretty badly
# in cases where readability is better without a bulldozer (like alignment
# of math equations and tables), but it's here for reference of what the
# standard layout would be.
#
# Run manually to reformat a file:
#
# LLVM14.0.0RC1\bin\clang-format.exe -i -style=file:clang-format.txt yourfile.cpp
#
# To reformat all files using cmd.exe:
# for /r %t in (*.cc *.h) do clang-format.exe -i -style=file "%t"
#
DisableFormat: true
BasedOnStyle: Microsoft
---
Language: Cpp
AlignAfterOpenBracket: BlockIndent
UseTab: Never
IndentWidth: 4
ColumnLimit: 120
DerivePointerAlignment: false
PointerAlignment: Left
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false
AlignAfterOpenBracket: BlockIndent #DontAlign AlwaysBreak
BinPackArguments: false
BinPackParameters: false
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowAllConstructorInitializersOnNextLine: false
BreakConstructorInitializers: BeforeColon
AllowShortLambdasOnASingleLine: true
AllowShortFunctionsOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: true
ConstructorInitializerAllOnOneLineOrOnePerLine: true
BreakBeforeBraces: Allman #Custom
BraceWrapping:
BeforeLambdaBody: true
AccessModifierOffset: -4
IndentAccessModifiers: false
---
Language: JavaScript
AlignAfterOpenBracket: AlwaysBreak
UseTab: Never
IndentWidth: 4
BreakBeforeBraces: Allman
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false
ColumnLimit: 200
---
#BasedOnStyle: VisualStudio
#BreakBeforeBraces: Allman
#AlignAfterOpenBracket: AlwaysBreak
#AllowShortIfStatementsOnASingleLine: false
#AllowShortCaseLabelsOnASingleLine: true
#AllowShortFunctionsOnASingleLine: true
#AlwaysBreakTemplateDeclarations: true
#ConstructorInitializerAllOnOneLineOrOnePerLine: true
#BinPackParameters: false
#IndentCaseLabels: false
#IndentWidth: 4
#TabWidth: 4
#UseTab: Never
#MaxEmptyLinesToKeep: 2
#PointerAlignment: Left
#SpaceBeforeInheritanceColon: true
#SpaceBeforeParens: ControlStatements
#SpaceBeforeRangeBasedForLoopColon: true
#SpacesInSquareBrackets: false
#AllowShortIfStatementsOnASingleLine: false
#ColumnLimit: 0
#SpaceInEmptyParentheses: false
#BreakBeforeClosingBrace: true
#BreakBeforeClosingParen: true
#DanglingParenthesis: true