From c88ea49679b41ec5dc675a4164d0c26eee425ff7 Mon Sep 17 00:00:00 2001 From: Kirill Isakov Date: Sat, 31 Jul 2021 00:41:47 +0600 Subject: [PATCH] Un-ignore .clang-tidy and enable conversion warnings. ... except for cryptographic functions, best leave that to the experts that have written them. They produce a lot of warnings, so place a couple of dummy .clang-tidy files there to ignore everything. --- .clang-tidy | 2 ++ .gitignore | 1 + src/chacha-poly1305/.clang-tidy | 3 +++ src/ed25519/.clang-tidy | 3 +++ 4 files changed, 9 insertions(+) create mode 100644 .clang-tidy create mode 100644 src/chacha-poly1305/.clang-tidy create mode 100644 src/ed25519/.clang-tidy diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 00000000..4a56007a --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,2 @@ +Checks: '-*,bugprone-narrowing-conversions' +WarningsAsErrors: '*' diff --git a/.gitignore b/.gitignore index 2f34081c..b6910c97 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ !.builds/ !.gitignore !.astylerc +!.clang-tidy *~ *.a *.dirstamp diff --git a/src/chacha-poly1305/.clang-tidy b/src/chacha-poly1305/.clang-tidy new file mode 100644 index 00000000..61b54d5e --- /dev/null +++ b/src/chacha-poly1305/.clang-tidy @@ -0,0 +1,3 @@ +Checks: '-*,misc-definitions-in-headers' +CheckOptions: + - { key: HeaderFileExtensions, value: "dummy" } diff --git a/src/ed25519/.clang-tidy b/src/ed25519/.clang-tidy new file mode 100644 index 00000000..61b54d5e --- /dev/null +++ b/src/ed25519/.clang-tidy @@ -0,0 +1,3 @@ +Checks: '-*,misc-definitions-in-headers' +CheckOptions: + - { key: HeaderFileExtensions, value: "dummy" } -- 2.20.1