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