[libcamera-devel] [PATCH 1/4] Add .clang-tidy
Tomi Valkeinen
tomi.valkeinen at iki.fi
Thu Oct 22 10:17:28 CEST 2020
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 <tomi.valkeinen at iki.fi>
---
.clang-tidy | 3 +++
1 file changed, 3 insertions(+)
create mode 100644 .clang-tidy
diff --git a/.clang-tidy b/.clang-tidy
new file mode 100644
index 00000000..4c47fa8c
--- /dev/null
+++ b/.clang-tidy
@@ -0,0 +1,3 @@
+Checks: -clang-diagnostic-c99-designator
+FormatStyle: file
+
--
2.25.1
More information about the libcamera-devel
mailing list