drm_hwcomposer: CI: Upgrade to clang-13 && clang-tidy-13
+ address new clang-tidy findings.
Signed-off-by: Roman Stratiienko <roman.o.stratiienko@globallogic.com>
diff --git a/.ci/.gitlab-ci-checkcommit.sh b/.ci/.gitlab-ci-checkcommit.sh
index e59ad9f..c9c2e49 100755
--- a/.ci/.gitlab-ci-checkcommit.sh
+++ b/.ci/.gitlab-ci-checkcommit.sh
@@ -50,7 +50,7 @@
exit 1
fi
- git show "$h" -- | clang-format-diff-12 -p 1 -style=file > /tmp/format-fixup.patch
+ git show "$h" -- | clang-format-diff-13 -p 1 -style=file > /tmp/format-fixup.patch
if [ -s /tmp/format-fixup.patch ]; then
cat /tmp/format-fixup.patch >&2
exit 1
diff --git a/.ci/Makefile b/.ci/Makefile
index 4ca14d6..7f43a8a 100644
--- a/.ci/Makefile
+++ b/.ci/Makefile
@@ -2,8 +2,8 @@
INCLUDE_DIRS := . ../libdrm/include/drm include ./.ci/android_headers ./tests/test_include
SYSTEM_INCLUDE_DIRS := /usr/include/libdrm
-CLANG := clang++-12
-CLANG_TIDY := clang-tidy-12
+CLANG := clang++-13
+CLANG_TIDY := clang-tidy-13
OUT_DIR := /tmp/drm_hwcomposer/build
SRC_DIR := .
@@ -57,6 +57,7 @@
TIDY_CHECKS_NORMAL := \
$(TIDY_CHECKS_FINE) \
-hicpp* \
+ -bugprone-easily-swappable-parameters \
-cppcoreguidelines-special-member-functions \
-cppcoreguidelines-avoid-c-arrays \
-cppcoreguidelines-pro-bounds-array-to-pointer-decay \