From d6a95c779419898cdf017b99df6117fe177885e7 Mon Sep 17 00:00:00 2001 From: "John K. Luebs" Date: Sun, 11 Feb 2024 15:31:01 -0600 Subject: [PATCH] Initial commit --- .editorconfig | 11 ++++++ .gitignore | 7 ++++ .luarc.json | 13 +++++++ ckiwi/.clang-format | 88 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 119 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitignore create mode 100644 .luarc.json create mode 100644 ckiwi/.clang-format diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..7e2158e --- /dev/null +++ b/.editorconfig @@ -0,0 +1,11 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true + +[{*.lua,*.rockspec,.luacov}] +indent_style = space +indent_size = 3 +call_parentheses = nosingletable +max_line_length = 98 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5b0714b --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +/luarocks +/lua +/lua_modules +/.luarocks +*.so +*.o +.cache/ diff --git a/.luarc.json b/.luarc.json new file mode 100644 index 0000000..5e855b1 --- /dev/null +++ b/.luarc.json @@ -0,0 +1,13 @@ +{ + "$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json", + "runtime.version": "LuaJIT", + "runtime.path": [ + "./?/init.lua", + "./?.lua", + + "lua_modules/share/lua/5.1/?.lua", + "lua_modules/share/lua/5.1/?/init.lua" + ], + "workspace.library": ["lua_modules/share/lua/5.1"], + "workspace.checkThirdParty": false +} diff --git a/ckiwi/.clang-format b/ckiwi/.clang-format new file mode 100644 index 0000000..5357c2c --- /dev/null +++ b/ckiwi/.clang-format @@ -0,0 +1,88 @@ +AccessModifierOffset: -2 +AlignAfterOpenBracket: BlockIndent # New in v14. For earlier clang-format versions, use AlwaysBreak instead. +AlignConsecutiveMacros: false +AlignConsecutiveAssignments: false +AlignConsecutiveDeclarations: false +AlignEscapedNewlines: DontAlign +AlignOperands: false +AlignTrailingComments: false +AllowAllArgumentsOnNextLine: false +AllowAllConstructorInitializersOnNextLine: false +AllowAllParametersOfDeclarationOnNextLine: false +AllowShortBlocksOnASingleLine: Empty +AllowShortCaseLabelsOnASingleLine: false +AllowShortFunctionsOnASingleLine: Empty +AllowShortIfStatementsOnASingleLine: Never +AllowShortLambdasOnASingleLine: All +AllowShortLoopsOnASingleLine: false +AlwaysBreakAfterReturnType: None +AlwaysBreakBeforeMultilineStrings: true +AlwaysBreakTemplateDeclarations: Yes +BinPackArguments: false +BinPackParameters: false +BreakAfterAttributes: Always +BreakBeforeBinaryOperators: NonAssignment +BreakBeforeBraces: Attach +BreakBeforeTernaryOperators: true +BreakConstructorInitializers: AfterColon +BreakInheritanceList: AfterColon +BreakStringLiterals: false +ColumnLimit: 90 +CompactNamespaces: false +ConstructorInitializerAllOnOneLineOrOnePerLine: true +ConstructorInitializerIndentWidth: 4 +ContinuationIndentWidth: 4 +Cpp11BracedListStyle: true +DerivePointerAlignment: false +FixNamespaceComments: true +IncludeBlocks: Regroup +IncludeCategories: + - Regex: '^' + Priority: 2 + SortPriority: 0 + CaseSensitive: false + - Regex: '^<.*\.h>' + Priority: 1 + SortPriority: 0 + CaseSensitive: false + - Regex: '^<.*' + Priority: 2 + SortPriority: 0 + CaseSensitive: false + - Regex: '.*' + Priority: 3 + SortPriority: 0 + CaseSensitive: false +IncludeIsMainRegex: '([-_](test|unittest))?$' +IndentCaseLabels: true +IndentPPDirectives: BeforeHash +IndentWidth: 3 +IndentWrappedFunctionNames: false +KeepEmptyLinesAtTheStartOfBlocks: false +MaxEmptyLinesToKeep: 1 +NamespaceIndentation: Inner +PointerAlignment: Left +ReferenceAlignment: Left # New in v13. int &name ==> int& name +ReflowComments: false +SeparateDefinitionBlocks: Always # New in v14. +SortIncludes: true +SortUsingDeclarations: true +SpaceAfterCStyleCast: false +SpaceAfterLogicalNot: false +SpaceAfterTemplateKeyword: false +SpaceBeforeAssignmentOperators: true +SpaceBeforeCpp11BracedList: true +SpaceBeforeCtorInitializerColon: true +SpaceBeforeInheritanceColon: false +SpaceBeforeParens: ControlStatements +SpaceBeforeRangeBasedForLoopColon: true +SpaceInEmptyParentheses: false +SpacesBeforeTrailingComments: 2 +SpacesInAngles: false +SpacesInCStyleCastParentheses: false +SpacesInContainerLiterals: false +SpacesInParentheses: false +SpacesInSquareBrackets: false +Standard: Cpp11 +TabWidth: 4 +UseTab: Never