diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..b321652 --- /dev/null +++ b/.clang-format @@ -0,0 +1,18 @@ +BasedOnStyle: LLVM +IndentWidth: 2 +TabWidth: 2 +UseTab: Never +ContinuationIndentWidth: 2 +AccessModifierOffset: -2 +BraceWrapping: + AfterControlStatement: false + AfterEnum: false + AfterFunction: false + AfterNamespace: false + AfterStruct: false + BeforeElse: false + IndentBraces: false +ColumnLimit: 0 +AllowShortIfStatementsOnASingleLine: true +AllowShortFunctionsOnASingleLine: Inline +PenaltyExcessCharacter: 50 diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000..3fa0096 --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,7 @@ +Checks: > + clang-analyzer-*, + bugprone-*, + performance-* +WarningsAsErrors: "" +HeaderFilterRegex: ".*" +FormatStyle: none diff --git a/.gitignore b/.gitignore index 7204966..f520653 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ CMakeCache.txt Doxyfile .* +!.clang-format +!.clang-tidy !.editorconfig !.gitignore !.github