From db619b672cd4bcfe4c9da14d955f98e85dcedd9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20LAIGRE?= Date: Thu, 24 Nov 2022 17:13:44 +0100 Subject: [PATCH 1/2] Update clang-tidy which is latest version on Ubuntu 22.04 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sébastien LAIGRE --- .github/workflows/clang-tidy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/clang-tidy.yml b/.github/workflows/clang-tidy.yml index 5d9a3ff3..1266fe9f 100644 --- a/.github/workflows/clang-tidy.yml +++ b/.github/workflows/clang-tidy.yml @@ -23,8 +23,8 @@ jobs: - name: Install clang-tidy run: | - sudo apt-get install -y clang-tidy-9 - sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-9 100 + sudo apt-get install -y clang-tidy-14 + sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-14 100 - name: Checkout sources uses: actions/checkout@v1 From 4d0e025b335426291dacafc7b1a85115d3cec822 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20LAIGRE?= Date: Thu, 24 Nov 2022 17:17:26 +0100 Subject: [PATCH 2/2] Add readability-identifier-length to tolerate 2-length variable names which is regularly used in the library (new warning/error due to clang-tidy version update) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sébastien LAIGRE --- .clang-tidy | 1 + 1 file changed, 1 insertion(+) diff --git a/.clang-tidy b/.clang-tidy index aeff4f90..cbb1e2f4 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -22,6 +22,7 @@ Checks: '-*, -readability-magic-numbers, -readability-redundant-declaration, -readability-redundant-access-specifiers, + -readability-identifier-length ' WarningsAsErrors: '*'