From 81fd3b3b9d5bfacbba6afb00b9b1d8c04469edcf Mon Sep 17 00:00:00 2001 From: Balazs Benics Date: Tue, 2 Nov 2021 16:26:56 +0100 Subject: [PATCH] [test][cfg] Use clang-13 in the CI, uplift tests accordingly --- .github/workflows/install-deps.sh | 12 ++++++------ .../functional/analyze_and_parse/test_files/Makefile | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/install-deps.sh b/.github/workflows/install-deps.sh index 2cda0e9833..5f36ce6a71 100755 --- a/.github/workflows/install-deps.sh +++ b/.github/workflows/install-deps.sh @@ -1,7 +1,7 @@ #!/bin/bash wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add - -sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main' -y +sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-13 main' -y sudo apt-get update -q @@ -13,9 +13,9 @@ sudo apt-get install \ libldap2-dev \ libsasl2-dev \ libssl-dev \ - clang-11 \ - clang-tidy-11 + clang-13 \ + clang-tidy-13 -sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-11 9999 -sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-11 9999 -sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-11 9999 +sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-13 9999 +sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-13 9999 +sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-13 9999 diff --git a/analyzer/tests/functional/analyze_and_parse/test_files/Makefile b/analyzer/tests/functional/analyze_and_parse/test_files/Makefile index 13277eac4b..479e62649f 100644 --- a/analyzer/tests/functional/analyze_and_parse/test_files/Makefile +++ b/analyzer/tests/functional/analyze_and_parse/test_files/Makefile @@ -34,7 +34,7 @@ compiler_warning_unused: compiler_error: $(CXX) -w compiler_error.cpp -o /dev/null context_hash: - $(CXX) -w context_hash.cpp -o /dev/null + $(CXX) -w context_hash.cpp -Wno-unused-but-set-variable -Wno-unused-but-set-parameter -o /dev/null collision: $(CXX) -w filename_collision/main.cpp filename_collision/a/f.cpp filename_collision/b/f.cpp -o /dev/null tidy_alias: