From 22679a81ebf5a69ef28c52e01ae259d96b27072a Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Thu, 22 Oct 2020 11:17:28 +0300 Subject: Add .clang-tidy Having .clang-tidy file will give us a 'clang-tidy' meson build target, so doing a full clang-tidy run can be done just by: ninja -C build clang-tidy I did not look at if more checks should be enabled or not. I disabled clang-diagnostic-c99-designator as that feature was used in the code, and I see no harm with the feature. Signed-off-by: Tomi Valkeinen Reviewed-by: Kieran Bingham Signed-off-by: Kieran Bingham --- .clang-tidy | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .clang-tidy (limited to '.clang-tidy') diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 00000000..b40e588a --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,2 @@ +Checks: -clang-diagnostic-c99-designator +FormatStyle: file -- cgit v1.2.1