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 <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2020-08-30 14:16:53 +01:00
parent 0574e63658
commit cdb9765802
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 16 additions and 0 deletions

16
.clang-tidy Normal file
View File

@ -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