Skip to content

Commit 1db2895

Browse files
authored
Merge pull request #37 from xaverh/reformatting
Reformatting
2 parents e95650d + 2927d1b commit 1db2895

File tree

7 files changed

+604
-438
lines changed

7 files changed

+604
-438
lines changed

.clang-format

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
AlignAfterOpenBracket: Align
3+
AlignConsecutiveAssignments: false
4+
AlignConsecutiveDeclarations: false
5+
AlignEscapedNewlinesLeft: false
6+
AlignOperands: true
7+
AlignTrailingComments: true
8+
AllowAllParametersOfDeclarationOnNextLine: true
9+
AllowShortBlocksOnASingleLine: true
10+
AllowShortCaseLabelsOnASingleLine: true
11+
AllowShortFunctionsOnASingleLine: All
12+
AllowShortIfStatementsOnASingleLine: true
13+
AllowShortLoopsOnASingleLine: true
14+
AlwaysBreakAfterReturnType: None
15+
AlwaysBreakBeforeMultilineStrings: true
16+
AlwaysBreakTemplateDeclarations: true
17+
BinPackArguments: true
18+
BinPackParameters: true
19+
BreakBeforeBinaryOperators: All
20+
BreakBeforeBraces: WebKit
21+
BreakBeforeTernaryOperators: false
22+
BreakConstructorInitializersBeforeComma: false
23+
BreakStringLiterals: true
24+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
25+
Cpp11BracedListStyle: false
26+
DerivePointerAlignment: false
27+
IncludeCategories:
28+
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
29+
Priority: 2
30+
- Regex: '^(<|"(gtest|isl|json)/)'
31+
Priority: 3
32+
- Regex: '.\*'
33+
Priority: 1
34+
IndentCaseLabels: false
35+
IndentWrappedFunctionNames: true
36+
KeepEmptyLinesAtTheStartOfBlocks: true
37+
MaxEmptyLinesToKeep: 1
38+
NamespaceIndentation: None
39+
ObjCSpaceAfterProperty: false
40+
ObjCSpaceBeforeProtocolList: false
41+
PenaltyBreakBeforeFirstCallParameter: 150
42+
PenaltyBreakComment: 100
43+
PenaltyBreakFirstLessLess: 0
44+
PenaltyBreakString: 100
45+
PenaltyExcessCharacter: 1000000
46+
PenaltyReturnTypeOnItsOwnLine: 200
47+
PointerAlignment: Left
48+
ReflowComments: true
49+
SortIncludes: true
50+
SpaceAfterCStyleCast: false
51+
SpaceBeforeAssignmentOperators: true
52+
SpaceBeforeParens: ControlStatements
53+
SpaceInEmptyParentheses: false
54+
SpacesBeforeTrailingComments: 1
55+
SpacesInAngles: false
56+
SpacesInCStyleCastParentheses: false
57+
SpacesInContainerLiterals: false
58+
SpacesInParentheses: false
59+
SpacesInSquareBrackets: false
60+
Standard: Cpp11
61+
AccessModifierOffset: -2
62+
BreakBeforeBraces: Attach
63+
JavaScriptQuotes: Single
64+
JavaScriptWrapImports: false
65+
UseTab: Never
66+
TabWidth: 2
67+
ConstructorInitializerIndentWidth: 2
68+
ContinuationIndentWidth: 2
69+
IndentWidth: 2
70+
ColumnLimit: 0
71+
Language: JavaScript
72+
...

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@
66
"search.exclude": {
77
"out": true // set this to false to include "out" folder in search results
88
},
9-
"typescript.tsdk": "./node_modules/typescript/lib" // we want to use the TS server from our node_modules folder to control its version
9+
"typescript.tsdk": "./node_modules/typescript/lib", // we want to use the TS server from our node_modules folder to control its version
10+
"clang-format.language.typescript.enable": true,
11+
"editor.formatOnType": false
1012
}

0 commit comments

Comments
 (0)