Skip to content

[nfc][analyzer][test][z3] Replace "REQUIRES: no-z3" with "UNSUPPORTED: z3"#184349

Merged
steakhal merged 1 commit intollvm:mainfrom
Snape3058:issue-181581-3
Mar 4, 2026
Merged

[nfc][analyzer][test][z3] Replace "REQUIRES: no-z3" with "UNSUPPORTED: z3"#184349
steakhal merged 1 commit intollvm:mainfrom
Snape3058:issue-181581-3

Conversation

@Snape3058
Copy link
Member

Fixing D120325, continuing #183724

Lit feature "no-z3" is the opposite of "z3", requiring "no-z3" is the same as unsupporting "z3".

…: z3"

Fixing D120325, continuing llvm#183724

Lit feature "no-z3" is the opposite of "z3", requiring "no-z3" is the
same as unsupporting "z3".
@llvmbot llvmbot added clang Clang issues not falling into any other category clang:static analyzer labels Mar 3, 2026
@llvmbot
Copy link
Member

llvmbot commented Mar 3, 2026

@llvm/pr-subscribers-clang

@llvm/pr-subscribers-clang-static-analyzer-1

Author: Ella Ma (Snape3058)

Changes

Fixing D120325, continuing #183724

Lit feature "no-z3" is the opposite of "z3", requiring "no-z3" is the same as unsupporting "z3".


Full diff: https://github.com/llvm/llvm-project/pull/184349.diff

2 Files Affected:

  • (modified) clang/test/Analysis/missing-z3-nocrash.c (+1-1)
  • (modified) clang/test/lit.cfg.py (-2)
diff --git a/clang/test/Analysis/missing-z3-nocrash.c b/clang/test/Analysis/missing-z3-nocrash.c
index 698430fffe1a1..2e345ad00f5ab 100644
--- a/clang/test/Analysis/missing-z3-nocrash.c
+++ b/clang/test/Analysis/missing-z3-nocrash.c
@@ -1,5 +1,5 @@
 // RUN: not %clang_analyze_cc1 -analyzer-constraints=z3 %s 2>&1 | FileCheck %s
-// REQUIRES: no-z3
+// UNSUPPORTED: z3
 
 // CHECK: error: analyzer constraint manager 'z3' is only available if LLVM
 // CHECK: was built with -DLLVM_ENABLE_Z3_SOLVER=ON
diff --git a/clang/test/lit.cfg.py b/clang/test/lit.cfg.py
index 6796c64fc4778..14fefbf0d5424 100644
--- a/clang/test/lit.cfg.py
+++ b/clang/test/lit.cfg.py
@@ -224,8 +224,6 @@ def have_host_clang_repl_cuda():
         config.available_features.add("z3")
         if config.clang_staticanalyzer_z3_mock:
             config.available_features.add("z3-mock")
-    else:
-        config.available_features.add("no-z3")
 
     check_analyzer_fixit_path = os.path.join(
         config.test_source_root, "Analysis", "check-analyzer-fixit.py"

@steakhal steakhal merged commit 0a1e395 into llvm:main Mar 4, 2026
13 checks passed
sahas3 pushed a commit to sahas3/llvm-project that referenced this pull request Mar 4, 2026
…: z3" (llvm#184349)

Fixing D120325, continuing llvm#183724

Lit feature "no-z3" is the opposite of "z3", requiring "no-z3" is the
same as unsupporting "z3".
sujianIBM pushed a commit to sujianIBM/llvm-project that referenced this pull request Mar 5, 2026
…: z3" (llvm#184349)

Fixing D120325, continuing llvm#183724

Lit feature "no-z3" is the opposite of "z3", requiring "no-z3" is the
same as unsupporting "z3".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clang:static analyzer clang Clang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants