From 872eaf3ab30bf614c641c83d58ed7e0db0f8ca36 Mon Sep 17 00:00:00 2001 From: hanez Date: Fri, 1 May 2026 22:32:55 +0200 Subject: [PATCH] Added .clang-format and .clang-tidy. No code changes. (0.41.5) --- .clang-format | 18 ++++++++++++++++++ .clang-tidy | 7 +++++++ .gitignore | 2 ++ 3 files changed, 27 insertions(+) create mode 100644 .clang-format create mode 100644 .clang-tidy 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