Author: Hans Wennborg Date: 2023-08-31T09:37:04+02:00 New Revision: 1968f0d7981df2d508c7c862d875b115837208b3
URL: https://github.com/llvm/llvm-project/commit/1968f0d7981df2d508c7c862d875b115837208b3 DIFF: https://github.com/llvm/llvm-project/commit/1968f0d7981df2d508c7c862d875b115837208b3.diff LOG: Add REQUIRES: staticanalyzer to some tests using clang -analyze Otherwise they fail in builds configured with -DCLANG_ENABLE_STATIC_ANALYZER=OFF. Follow-up to 3c9988f85d2508bdbc64c81fed7c4b9b8db54262. Added: Modified: clang/test/OpenMP/amdgpu_exceptions.cpp clang/test/OpenMP/amdgpu_throw.cpp clang/test/OpenMP/amdgpu_try_catch.cpp clang/test/OpenMP/nvptx_exceptions.cpp clang/test/OpenMP/nvptx_throw.cpp clang/test/OpenMP/nvptx_try_catch.cpp clang/test/OpenMP/x86_target_exceptions.cpp clang/test/OpenMP/x86_target_throw.cpp clang/test/OpenMP/x86_target_try_catch.cpp Removed: ################################################################################ diff --git a/clang/test/OpenMP/amdgpu_exceptions.cpp b/clang/test/OpenMP/amdgpu_exceptions.cpp index 0e62192c92e4cb..2bc1d4340f75c7 100644 --- a/clang/test/OpenMP/amdgpu_exceptions.cpp +++ b/clang/test/OpenMP/amdgpu_exceptions.cpp @@ -1,4 +1,4 @@ -// REQUIRES: amdgpu-registered-target +// REQUIRES: amdgpu-registered-target, staticanalyzer /** * The first four lines test that a warning is produced when enabling diff --git a/clang/test/OpenMP/amdgpu_throw.cpp b/clang/test/OpenMP/amdgpu_throw.cpp index aa3d6b37a66982..c7248222d7efdb 100644 --- a/clang/test/OpenMP/amdgpu_throw.cpp +++ b/clang/test/OpenMP/amdgpu_throw.cpp @@ -1,4 +1,4 @@ -// REQUIRES: amdgpu-registered-target +// REQUIRES: amdgpu-registered-target, staticanalyzer /** * The first four lines test that a warning is produced when enabling diff --git a/clang/test/OpenMP/amdgpu_try_catch.cpp b/clang/test/OpenMP/amdgpu_try_catch.cpp index 45552e0c2d5f46..76568f2cc69674 100644 --- a/clang/test/OpenMP/amdgpu_try_catch.cpp +++ b/clang/test/OpenMP/amdgpu_try_catch.cpp @@ -1,4 +1,4 @@ -// REQUIRES: amdgpu-registered-target +// REQUIRES: amdgpu-registered-target, staticanalyzer /** * The first four lines test that a warning is produced when enabling diff --git a/clang/test/OpenMP/nvptx_exceptions.cpp b/clang/test/OpenMP/nvptx_exceptions.cpp index f30bd9da080cde..af283b0649d84d 100644 --- a/clang/test/OpenMP/nvptx_exceptions.cpp +++ b/clang/test/OpenMP/nvptx_exceptions.cpp @@ -1,4 +1,4 @@ -// REQUIRES: nvptx-registered-target +// REQUIRES: nvptx-registered-target, staticanalyzer /** * The first four lines test that a warning is produced when enabling diff --git a/clang/test/OpenMP/nvptx_throw.cpp b/clang/test/OpenMP/nvptx_throw.cpp index f494fde8805bf6..8bc4366fcf7655 100644 --- a/clang/test/OpenMP/nvptx_throw.cpp +++ b/clang/test/OpenMP/nvptx_throw.cpp @@ -1,4 +1,4 @@ -// REQUIRES: nvptx-registered-target +// REQUIRES: nvptx-registered-target, staticanalyzer /** * The first four lines test that a warning is produced when enabling diff --git a/clang/test/OpenMP/nvptx_try_catch.cpp b/clang/test/OpenMP/nvptx_try_catch.cpp index 417a6ec1db0b4d..0e9954c6e22322 100644 --- a/clang/test/OpenMP/nvptx_try_catch.cpp +++ b/clang/test/OpenMP/nvptx_try_catch.cpp @@ -1,4 +1,4 @@ -// REQUIRES: nvptx-registered-target +// REQUIRES: nvptx-registered-target, staticanalyzer /** * The first four lines test that a warning is produced when enabling diff --git a/clang/test/OpenMP/x86_target_exceptions.cpp b/clang/test/OpenMP/x86_target_exceptions.cpp index effa76f0016dbe..5c02bcb92621bf 100644 --- a/clang/test/OpenMP/x86_target_exceptions.cpp +++ b/clang/test/OpenMP/x86_target_exceptions.cpp @@ -1,4 +1,4 @@ -// REQUIRES: x86-registered-target +// REQUIRES: x86-registered-target, staticanalyzer // RUN: %clang_cc1 -fopenmp -triple x86_64-pc-linux-gnu -fopenmp-is-target-device -fcxx-exceptions -fexceptions %s -emit-llvm -S -verify -Wopenmp-target-exception -analyze #pragma omp declare target diff --git a/clang/test/OpenMP/x86_target_throw.cpp b/clang/test/OpenMP/x86_target_throw.cpp index b55775287daa69..a9186bac43d63f 100644 --- a/clang/test/OpenMP/x86_target_throw.cpp +++ b/clang/test/OpenMP/x86_target_throw.cpp @@ -1,4 +1,4 @@ -// REQUIRES: x86-registered-target +// REQUIRES: x86-registered-target, staticanalyzer // RUN: %clang_cc1 -fopenmp -triple x86_64-pc-linux-gnu -fopenmp-is-target-device -fcxx-exceptions -fexceptions %s -emit-llvm -S -verify -Wopenmp-target-exception -analyze #pragma omp declare target diff --git a/clang/test/OpenMP/x86_target_try_catch.cpp b/clang/test/OpenMP/x86_target_try_catch.cpp index f18e6aaf99f90a..698af912c6ac15 100644 --- a/clang/test/OpenMP/x86_target_try_catch.cpp +++ b/clang/test/OpenMP/x86_target_try_catch.cpp @@ -1,4 +1,4 @@ -// REQUIRES: x86-registered-target +// REQUIRES: x86-registered-target, staticanalyzer // RUN: %clang_cc1 -fopenmp -triple x86_64-pc-linux-gnu -fopenmp-is-target-device -fcxx-exceptions -fexceptions %s -emit-llvm -S -verify -Wopenmp-target-exception -analyze #pragma omp declare target _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits