From cdb9765802a1c711400c6cf69d1927ea8903760a Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sun, 30 Aug 2020 14:16:53 +0100 Subject: [PATCH] Add a .clang-tidy file We currently don't use it for anything. We could add a CI pass in the future. We don't enable clang-analyzer checks. The checks enabled here should mostly be syntax/style linting only, and should be cheap to run. clang-analyzer checks are usually compute-intensive, and can easily be run separately anyway, with scan-build and such. The list of checks definitely isn't final. Signed-off-by: Yuxuan Shui --- .clang-tidy | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .clang-tidy diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 00000000..b521d6e8 --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,16 @@ +Checks: > + readability-*, + performance-*, + modernize-*, + google-readability-todo, + cert-err34-c, + cert-flp30-c, + bugprone-*, + misc-misplaced-const, + misc-redundant-expression, + misc-static-assert, + -clang-analyzer-*, + -readability-isolate-declaration, + -readability-magic-numbers +AnalyzeTemporaryDtors: false +FormatStyle: file