diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..649fcb2 --- /dev/null +++ b/.clang-format @@ -0,0 +1,75 @@ +--- +# kak: filetype=yaml +Language: Cpp +BasedOnStyle: LLVM +AlignArrayOfStructures: Left +AlignConsecutiveMacros: AcrossComments +AlignConsecutiveAssignments: None +AlignConsecutiveBitFields: AcrossComments +AlignConsecutiveDeclarations: None +AllowAllArgumentsOnNextLine: false +AllowAllParametersOfDeclarationOnNextLine: false +AllowShortEnumsOnASingleLine: false +AllowShortFunctionsOnASingleLine: None +AlwaysBreakTemplateDeclarations: Yes +AttributeMacros: + - __capability +BinPackArguments: false +BinPackParameters: false +BreakBeforeBinaryOperators: NonAssignment +BreakBeforeInheritanceComma: false +BreakInheritanceList: AfterComma +ColumnLimit: 120 +Cpp11BracedListStyle: false +EmptyLineBeforeAccessModifier: Always +FixNamespaceComments: true +IncludeBlocks: Regroup +IncludeCategories: + - Regex: '^"(llvm|llvm-c|clang|clang-c)/' + Priority: 2 + SortPriority: 0 + CaseSensitive: false + - Regex: '^(<|"(gtest|gmock|isl|json)/)' + Priority: 3 + SortPriority: 0 + CaseSensitive: false + - Regex: '.*' + Priority: 1 + SortPriority: 0 + CaseSensitive: false +IncludeIsMainRegex: '(_test)?$' +IncludeIsMainSourceRegex: '' +IndentExternBlock: NoIndent +IndentWidth: 4 +KeepEmptyLinesAtTheStartOfBlocks: false +MaxEmptyLinesToKeep: 2 +# PackConstructorInitializers: CurrentLine +PointerAlignment: Left +ReferenceAlignment: Right +ReflowComments: true +# SeparateDefinitionBlocks: Leave +SpaceAfterCStyleCast: true +SpaceAfterLogicalNot: false +SpaceAfterTemplateKeyword: false +SpaceBeforeAssignmentOperators: true +SpaceBeforeCaseColon: false +SpaceBeforeCpp11BracedList: false +SpaceBeforeCtorInitializerColon: true +SpaceBeforeInheritanceColon: true +SpaceBeforeParens: ControlStatements +SpaceAroundPointerQualifiers: Default +SpaceBeforeRangeBasedForLoopColon: true +SpaceInEmptyBlock: false +SpaceInEmptyParentheses: false +SpacesBeforeTrailingComments: 1 +SpacesInAngles: Never +SpacesInConditionalStatement: false +SpacesInContainerLiterals: true +SpacesInCStyleCastParentheses: false +SpacesInLineCommentPrefix: + Minimum: 1 + Maximum: -1 +SpacesInParentheses: false +SpacesInSquareBrackets: false +SpaceBeforeSquareBrackets: false +TabWidth: 4 diff --git a/.fdignore b/.fdignore new file mode 100644 index 0000000..89f9ac0 --- /dev/null +++ b/.fdignore @@ -0,0 +1 @@ +out/ diff --git a/.gitignore b/.gitignore index a06c9da..db23e87 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,9 @@ out/ + +.gdb_history +.gdbinit +lua.debug + +.cache/clangd +compile_commands.json .sass-cache -.vscode/*.log