Un-ignore .clang-tidy and enable conversion warnings.
authorKirill Isakov <is-kir@ya.ru>
Fri, 30 Jul 2021 18:41:47 +0000 (00:41 +0600)
committerKirill Isakov <is-kir@ya.ru>
Sat, 31 Jul 2021 18:07:18 +0000 (00:07 +0600)
... 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 [new file with mode: 0644]
.gitignore
src/chacha-poly1305/.clang-tidy [new file with mode: 0644]
src/ed25519/.clang-tidy [new file with mode: 0644]

diff --git a/.clang-tidy b/.clang-tidy
new file mode 100644 (file)
index 0000000..4a56007
--- /dev/null
@@ -0,0 +1,2 @@
+Checks: '-*,bugprone-narrowing-conversions'
+WarningsAsErrors: '*'
index 2f34081..b6910c9 100644 (file)
@@ -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 (file)
index 0000000..61b54d5
--- /dev/null
@@ -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 (file)
index 0000000..61b54d5
--- /dev/null
@@ -0,0 +1,3 @@
+Checks: '-*,misc-definitions-in-headers'
+CheckOptions:
+  - { key: HeaderFileExtensions, value: "dummy" }