From: Kirill Isakov Date: Fri, 30 Jul 2021 18:41:47 +0000 (+0600) Subject: Un-ignore .clang-tidy and enable conversion warnings. X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=c88ea49679b41ec5dc675a4164d0c26eee425ff7;p=tinc 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. --- 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" }