Add clang-tidy
This commit adds clang-tidy, and fixes most of the issues that tidy
finds that require manual intervention. Note, it also reverts from
c++23 -> c++20 due to a bunch in clang-13 + libstdc++ + std::tuple
packs. At such time as that's fixed, we can roll forward again.
Change-Id: I9bb5381866ef83dc75e41ef314377b19a79141f1
Signed-off-by: Ed Tanous <ed@tanous.net>
diff --git a/meson.build b/meson.build
index ec37c55..2900ca4 100644
--- a/meson.build
+++ b/meson.build
@@ -4,7 +4,7 @@
'buildtype=debugoptimized',
'warning_level=3',
'werror=true',
- 'cpp_std=c++23',
+ 'cpp_std=c++20',
'b_lto=true',
],
version: '1.0',