From aaf1dfc49e4fcc6e72b326dc6c529717193a933d Mon Sep 17 00:00:00 2001 From: Quinten Date: Wed, 10 Sep 2025 17:12:05 +0200 Subject: [PATCH] clang format & clang tidy --- .clang-format | 1 + .clang-tidy | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 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..3e5f49c --- /dev/null +++ b/.clang-format @@ -0,0 +1 @@ +BasedOnStyle: Microsoft \ No newline at end of file diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000..5ceb7b9 --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,28 @@ +Checks: > + bugprone-*, + clang-analyzer-*, + cppcoreguidelines-*, + modernize-*, + performance-*, + readability-*, + -modernize-use-trailing-return-type, + -modernize-avoid-c-arrays, + -cppcoreguidelines-avoid-magic-numbers, + -readability-magic-numbers + +CheckOptions: + - key: modernize-use-auto.MinTypeNameLength + value: 5 + - key: readability-function-size.LineThreshold + value: 80 + + - key: modernize-use-nullptr.NullMacros + value: 'NULL' + - key: modernize-use-using.UseUsing + value: true + - key: modernize-concat-nested-namespaces.Enabled + value: true + - key: modernize-return-braced-init-list.Enabled + value: true + +ExtraArgs: ['-std=c++20'] \ No newline at end of file