aboutsummaryrefslogtreecommitdiff
path: root/.clang-tidy
diff options
context:
space:
mode:
authorRoman Stratiienko <r.stratiienko@gmail.com>2021-08-04 19:55:37 +0300
committerRoman Stratiienko <r.stratiienko@gmail.com>2021-08-29 15:54:17 +0300
commitd26619b5d0d28889c153e3d129c32f76b0aa1e2d (patch)
tree19a056c419d4660826656bbc72f430ca9dafa808 /.clang-tidy
parent8514329f7e98dba60c396a8d0cab72daeb78e65e (diff)
downloaddrm_hwcomposer-d26619b5d0d28889c153e3d129c32f76b0aa1e2d.tar.gz
drm_hwcomposer: CI: Upgrade clang-* to v12
- Enabling readability-ientifier-naming tidy check does require to specify MacroDefinitionIgnoredRegexp key, which is available only in clang-tidy-12. - Clang-12 isn't available on ubuntu 20.10, therefore upgrade to 21.04. - "DEBIAN_FRONTEND: noninteractive" is required to prevent ubuntu 21.04 from hanging, presumably due to waiting for the user input. - A positive side effect of upgrading to clang-12 is new clang-tidy-12, which exposed new issues in the code which is also fixed by this commit, e.g: Failed cppcoreguidelines-narrowing-conversions check with error: error: narrowing conversion from 'uint32_t' (aka 'unsigned int') to 'float' require explicit casting to pass the check, while some of such fails are caused by incorrect variable type and fixed by changing the type to correct one. Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
Diffstat (limited to '.clang-tidy')
-rw-r--r--.clang-tidy1
1 files changed, 1 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy
index 0bb7bf0..6cdbdc0 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -6,6 +6,7 @@ Checks: >
*,
-fuchsia*,
-llvm*,
+ -concurrency-mt-unsafe,
-cppcoreguidelines-pro-type-vararg, -hicpp-vararg,
-hicpp-signed-bitwise,