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 <tomi.valkeinen@iki.fi>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Tomi Valkeinen 2020-10-22 11:17:28 +03:00 committed by Kieran Bingham
parent 4a748394e5
commit 22679a81eb

2
.clang-tidy Normal file
View file

@ -0,0 +1,2 @@
Checks: -clang-diagnostic-c99-designator
FormatStyle: file