Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
hun1er committed Jun 22, 2023
0 parents commit e0d21a4
Show file tree
Hide file tree
Showing 116 changed files with 13,231 additions and 0 deletions.
162 changes: 162 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
---
Language: Cpp
Standard: c++17
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignArrayOfStructures: Left
AlignConsecutiveAssignments: None
AlignConsecutiveBitFields: None
AlignConsecutiveDeclarations: None
AlignConsecutiveMacros: None
AlignEscapedNewlines: Right
AlignOperands: Align
AlignTrailingComments: false
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: true
AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: Empty
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: true
BinPackParameters: true
BitFieldColonSpacing: Both
BraceWrapping:
AfterCaseLabel: false
AfterClass: true
AfterControlStatement: Never
AfterEnum: true
AfterExternBlock: false
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: false
AfterStruct: true
AfterUnion: true
BeforeCatch: true
BeforeElse: true
BeforeLambdaBody: false
BeforeWhile: true
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyNamespace: true
SplitEmptyRecord: true
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Custom
BreakBeforeConceptDeclarations: true
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: AfterColon
BreakInheritanceList: AfterColon
BreakStringLiterals: true
ColumnLimit: 120
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerIndentWidth: 2
ContinuationIndentWidth: 2
Cpp11BracedListStyle: true
DeriveLineEnding: false
DerivePointerAlignment: false
DisableFormat: false
EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: LogicalBlock
FixNamespaceComments: false
IncludeBlocks: Merge
IncludeCategories:
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 2
SortPriority: 0
CaseSensitive: false
- Regex: '^((<|")(boost|gtest|gmock|isl|json)/)'
Priority: 3
SortPriority: 0
CaseSensitive: false
- Regex: '<[[:alnum:].]+>'
Priority: 4
CaseSensitive: false
- Regex: '.*'
Priority: 1
SortPriority: 0
CaseSensitive: false
IncludeIsMainRegex: '(_test)?$'
IncludeIsMainSourceRegex: ''
IndentAccessModifiers: false
IndentCaseBlocks: false
IndentCaseLabels: true
IndentExternBlock: AfterExternBlock
IndentGotoLabels: true
IndentPPDirectives: BeforeHash
#IndentRequiresClause: false
IndentWidth: 4
IndentWrappedFunctionNames: true
InsertBraces: true
InsertTrailingCommas: None
KeepEmptyLinesAtTheStartOfBlocks: false
LambdaBodyIndentation: Signature
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 2
NamespaceIndentation: All
PackConstructorInitializers: CurrentLine
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakOpenParenthesis: 0
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyIndentedWhitespace: 0
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Left
PPIndentWidth: 2
QualifierAlignment: Left
ReferenceAlignment: Pointer
ReflowComments: true
RemoveBracesLLVM: false
#RequiresClausePosition: OwnLine
SeparateDefinitionBlocks: Always
ShortNamespaceLines: 1
SortIncludes: CaseInsensitive
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceAroundPointerQualifiers: Before
SpaceBeforeAssignmentOperators: true
SpaceBeforeCaseColon: false
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeParensOptions:
AfterControlStatements: true
AfterForeachMacros: true
AfterFunctionDeclarationName: false
AfterFunctionDefinitionName: false
AfterIfMacros: true
AfterOverloadedOperator: false
#AfterRequiresInClause: true
#AfterRequiresInExpression: true
BeforeNonEmptyParentheses: false
SpaceBeforeRangeBasedForLoopColon: true
SpaceBeforeSquareBrackets: false
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: Never
SpacesInConditionalStatement: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInLineCommentPrefix:
Minimum: 1
Maximum: -1
SpacesInParentheses: false
SpacesInSquareBrackets: false
TabWidth: 4
UseCRLF: false
UseTab: Never
...
65 changes: 65 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
---
Checks: >-
abseil-*,
boost-*,
bugprone-*,
cert-*,
clang-analyzer-*,
clang-diagnostic-*,
concurrency-*,
cppcoreguidelines-*,
hicpp-*,
misc-*,
modernize-*,
performance-*,
portability-*,
readability-*,
-bugprone-easily-swappable-parameters,
-modernize-use-trailing-return-type,
-readability-identifier-length
WarningsAsErrors: ""
HeaderFilterRegex: ""
FormatStyle: "file"
AnalyzeTemporaryDtors: false
UseColor: true
CheckOptions:
- key: misc-const-correctness.WarnPointersAsValues
value: true
- key: misc-const-correctness.TransformPointersAsValues
value: true
- key: readability-identifier-naming.ClassCase
value: CamelCase
- key: readability-identifier-naming.EnumCase
value: CamelCase
- key: readability-identifier-naming.EnumConstantCase
value: lower_case
- key: readability-identifier-naming.FunctionCase
value: lower_case
- key: readability-identifier-naming.GlobalConstantCase
value: UPPER_CASE
- key: readability-identifier-naming.GlobalFunctionCase
value: lower_case
- key: readability-identifier-naming.MacroDefinitionCase
value: UPPER_CASE
- key: readability-identifier-naming.MemberCase
value: lower_case
- key: readability-identifier-naming.MethodCase
value: lower_case
- key: readability-identifier-naming.NamespaceCase
value: lower_case
- key: readability-identifier-naming.PrivateMemberSuffix
value: "_"
- key: readability-identifier-naming.StructCase
value: CamelCase
- key: readability-identifier-naming.TemplateParameterCase
value: CamelCase
- key: readability-identifier-naming.TypeAliasCase
value: CamelCase
- key: readability-identifier-naming.TypedefCase
value: CamelCase
- key: readability-identifier-naming.TypeTemplateParameterCase
value: CamelCase
- key: readability-identifier-naming.UnionCase
value: CamelCase
- key: readability-identifier-naming.VariableCase
value: lower_case
140 changes: 140 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
#######################################
# Core Options #
#######################################

# This file is the top-most EditorConfig file
root = true

# All Files
[*]
charset = utf-8
guidelines = 120
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true


#######################################
# File Extension Settings #
#######################################

# Visual Studio Solution Files
[*.sln]
indent_style = tab

# Visual Studio XML Project Files
[*.{csproj,vbproj,vcxproj.filters,proj,projitems,shproj}]
indent_size = 2

# XML Configuration Files
[*.{xml,config,props,targets,nuspec,resx,ruleset,vsixmanifest,vsct}]
indent_size = 2

# JSON Files
[*.{json,json5,webmanifest}]
indent_size = 2

# YAML Files
[*.{yml,yaml,clang-format,clang-tidy}]
indent_size = 2

# Markdown Files
[*.{md,mdx}]
trim_trailing_whitespace = false

# Web Files
[*.{htm,html,js,jsm,ts,tsx,cjs,cts,ctsx,mjs,mts,mtsx,css,sass,scss,less,pcss,svg,vue}]
indent_size = 2

# Python Files
[*.{py,py3}]
guidelines = 88

# Batch Files
[*.{cmd,bat}]
end_of_line = crlf

# Bash Files
[*.sh]
end_of_line = lf

# Makefiles
[Makefile]
end_of_line = lf
indent_style = tab

# CMake
[{CMakeLists.txt,*.cmake,*.rst}]
indent_size = 2
indent_style = space


########################################
# Code Style #
########################################

# File extensions
[*.{c++,c,cc,cpp,cppm,cxx,h,h++,hh,hpp,hxx,inl,ipp,ixx,tlh,tli}]
end_of_line = lf

# C++
cpp_generate_documentation_comments = doxygen_slash_star
cpp_indent_access_specifiers = false
cpp_indent_braces = false
cpp_indent_case_contents = true
cpp_indent_case_contents_when_block = false
cpp_indent_case_labels = false
cpp_indent_goto_labels = one_left
cpp_indent_lambda_braces_when_parameter = false
cpp_indent_multi_line_relative_to = innermost_parenthesis
cpp_indent_namespace_contents = true
cpp_indent_preprocessor = one_left
cpp_indent_preserve_comments = false
cpp_indent_preserve_within_parentheses = true
cpp_indent_within_parentheses = align_to_parenthesis
cpp_new_line_before_catch = true
cpp_new_line_before_else = true
cpp_new_line_before_open_brace_block = same_line
cpp_new_line_before_open_brace_function = new_line
cpp_new_line_before_open_brace_lambda = new_line
cpp_new_line_before_open_brace_namespace = new_line
cpp_new_line_before_open_brace_type = new_line
cpp_new_line_before_while_in_do_while = true
cpp_new_line_close_brace_same_line_empty_function = false
cpp_new_line_close_brace_same_line_empty_type = false
cpp_new_line_scope_braces_on_separate_lines = true
cpp_space_after_cast_close_parenthesis = false
cpp_space_after_comma = true
cpp_space_after_keywords_in_control_flow_statements = true
cpp_space_after_semicolon = true
cpp_space_around_assignment_operator = insert
cpp_space_around_binary_operator = insert
cpp_space_around_ternary_operator = insert
cpp_space_before_block_open_brace = true
cpp_space_before_comma = false
cpp_space_before_constructor_colon = true
cpp_space_before_empty_square_brackets = false
cpp_space_before_function_open_parenthesis = remove
cpp_space_before_inheritance_colon = true
cpp_space_before_initializer_list_open_brace = false
cpp_space_before_lambda_open_parenthesis = false
cpp_space_before_open_square_bracket = false
cpp_space_between_empty_braces = false
cpp_space_between_empty_lambda_brackets = false
cpp_space_between_empty_parameter_list_parentheses = false
cpp_space_between_empty_square_brackets = false
cpp_space_group_square_brackets = true
cpp_space_pointer_reference_alignment = left
cpp_space_preserve_in_initializer_list = true
cpp_space_remove_around_member_operators = true
cpp_space_remove_around_unary_operator = true
cpp_space_remove_before_semicolon = true
cpp_space_within_cast_parentheses = false
cpp_space_within_control_flow_statement_parentheses = false
cpp_space_within_expression_parentheses = false
cpp_space_within_initializer_list_braces = false
cpp_space_within_lambda_brackets = false
cpp_space_within_parameter_list_parentheses = false
cpp_space_within_square_brackets = false
cpp_wrap_preserve_blocks = never
Loading

0 comments on commit e0d21a4

Please sign in to comment.