Skip to content

Commit 3572cc5

Browse files
committed
Initial commit
0 parents  commit 3572cc5

3,488 files changed

Lines changed: 664805 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.clang-format

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
Language: Cpp
2+
BasedOnStyle: Google
3+
AccessModifierOffset: -1
4+
AlignAfterOpenBracket: Align
5+
AlignConsecutiveAssignments: None
6+
AlignOperands: Align
7+
AllowAllArgumentsOnNextLine: true
8+
AllowAllConstructorInitializersOnNextLine: true
9+
AllowAllParametersOfDeclarationOnNextLine: false
10+
AllowShortBlocksOnASingleLine: Empty
11+
AllowShortCaseLabelsOnASingleLine: false
12+
AllowShortFunctionsOnASingleLine: Inline
13+
AllowShortIfStatementsOnASingleLine: Never # To avoid conflict, set this "Never" and each "if statement" should include brace when coding
14+
AllowShortLambdasOnASingleLine: Inline
15+
AllowShortLoopsOnASingleLine: false
16+
AlwaysBreakAfterReturnType: None
17+
AlwaysBreakTemplateDeclarations: Yes
18+
BinPackArguments: true
19+
BreakBeforeBraces: Custom
20+
BraceWrapping:
21+
AfterCaseLabel: false
22+
AfterClass: false
23+
AfterStruct: false
24+
AfterControlStatement: Never
25+
AfterEnum: false
26+
AfterFunction: false
27+
AfterNamespace: false
28+
AfterUnion: false
29+
AfterExternBlock: false
30+
BeforeCatch: false
31+
BeforeElse: false
32+
BeforeLambdaBody: false
33+
IndentBraces: false
34+
SplitEmptyFunction: false
35+
SplitEmptyRecord: false
36+
SplitEmptyNamespace: false
37+
BreakBeforeBinaryOperators: None
38+
BreakBeforeTernaryOperators: true
39+
BreakConstructorInitializers: BeforeColon
40+
BreakInheritanceList: BeforeColon
41+
ColumnLimit: 80
42+
CompactNamespaces: false
43+
ContinuationIndentWidth: 4
44+
Cpp11BracedListStyle: true
45+
DerivePointerAlignment: false # Make sure the * or & align on the left
46+
EmptyLineBeforeAccessModifier: LogicalBlock
47+
FixNamespaceComments: true
48+
IncludeBlocks: Preserve
49+
IndentCaseLabels: true
50+
IndentPPDirectives: None
51+
IndentWidth: 2
52+
KeepEmptyLinesAtTheStartOfBlocks: true
53+
MaxEmptyLinesToKeep: 1
54+
NamespaceIndentation: None
55+
ObjCSpaceAfterProperty: false
56+
ObjCSpaceBeforeProtocolList: true
57+
PointerAlignment: Left
58+
ReflowComments: false
59+
# SeparateDefinitionBlocks: Always # Only support for clang-format 14
60+
SpaceAfterCStyleCast: false
61+
SpaceAfterLogicalNot: false
62+
SpaceAfterTemplateKeyword: true
63+
SpaceBeforeAssignmentOperators: true
64+
SpaceBeforeCpp11BracedList: false
65+
SpaceBeforeCtorInitializerColon: true
66+
SpaceBeforeInheritanceColon: true
67+
SpaceBeforeParens: ControlStatements
68+
SpaceBeforeRangeBasedForLoopColon: true
69+
SpaceBeforeSquareBrackets: false
70+
SpaceInEmptyParentheses: false
71+
SpacesBeforeTrailingComments: 2
72+
SpacesInAngles: false
73+
SpacesInCStyleCastParentheses: false
74+
SpacesInContainerLiterals: false
75+
SpacesInParentheses: false
76+
SpacesInSquareBrackets: false
77+
Standard: c++11
78+
TabWidth: 4
79+
UseTab: Never

.clangd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CompileFlags:
2+
CompilationDatabase: targets/cli/build/ # Search build/ directory for compile_commands.json

.editorconfig

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
[*]
2+
cpp_indent_braces=false
3+
cpp_indent_multi_line_relative_to=innermost_parenthesis
4+
cpp_indent_within_parentheses=indent
5+
cpp_indent_preserve_within_parentheses=false
6+
cpp_indent_case_labels=false
7+
cpp_indent_case_contents=true
8+
cpp_indent_case_contents_when_block=false
9+
cpp_indent_lambda_braces_when_parameter=true
10+
cpp_indent_goto_labels=one_left
11+
cpp_indent_preprocessor=leftmost_column
12+
cpp_indent_access_specifiers=false
13+
cpp_indent_namespace_contents=true
14+
cpp_indent_preserve_comments=false
15+
cpp_new_line_before_open_brace_namespace=ignore
16+
cpp_new_line_before_open_brace_type=ignore
17+
cpp_new_line_before_open_brace_function=ignore
18+
cpp_new_line_before_open_brace_block=ignore
19+
cpp_new_line_before_open_brace_lambda=ignore
20+
cpp_new_line_scope_braces_on_separate_lines=false
21+
cpp_new_line_close_brace_same_line_empty_type=false
22+
cpp_new_line_close_brace_same_line_empty_function=false
23+
cpp_new_line_before_catch=true
24+
cpp_new_line_before_else=true
25+
cpp_new_line_before_while_in_do_while=false
26+
cpp_space_before_function_open_parenthesis=remove
27+
cpp_space_within_parameter_list_parentheses=false
28+
cpp_space_between_empty_parameter_list_parentheses=false
29+
cpp_space_after_keywords_in_control_flow_statements=true
30+
cpp_space_within_control_flow_statement_parentheses=false
31+
cpp_space_before_lambda_open_parenthesis=false
32+
cpp_space_within_cast_parentheses=false
33+
cpp_space_after_cast_close_parenthesis=false
34+
cpp_space_within_expression_parentheses=false
35+
cpp_space_before_block_open_brace=true
36+
cpp_space_between_empty_braces=false
37+
cpp_space_before_initializer_list_open_brace=false
38+
cpp_space_within_initializer_list_braces=true
39+
cpp_space_preserve_in_initializer_list=true
40+
cpp_space_before_open_square_bracket=false
41+
cpp_space_within_square_brackets=false
42+
cpp_space_before_empty_square_brackets=false
43+
cpp_space_between_empty_square_brackets=false
44+
cpp_space_group_square_brackets=true
45+
cpp_space_within_lambda_brackets=false
46+
cpp_space_between_empty_lambda_brackets=false
47+
cpp_space_before_comma=false
48+
cpp_space_after_comma=true
49+
cpp_space_remove_around_member_operators=true
50+
cpp_space_before_inheritance_colon=true
51+
cpp_space_before_constructor_colon=true
52+
cpp_space_remove_before_semicolon=true
53+
cpp_space_after_semicolon=false
54+
cpp_space_remove_around_unary_operator=true
55+
cpp_space_around_binary_operator=insert
56+
cpp_space_around_assignment_operator=insert
57+
cpp_space_pointer_reference_alignment=left
58+
cpp_space_around_ternary_operator=insert
59+
cpp_wrap_preserve_blocks=one_liners

0 commit comments

Comments
 (0)