[clang] SignAnalysisTest.cpp: Suppress a warning. [-Wunused-template] (PR #215563)
NAKAMURA Takumi via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 11 06:40:37 PDT 2026
https://github.com/chapuni created https://github.com/llvm/llvm-project/pull/215563
None
>From b29ac65b4abbf6de64857f7e698cac45de871b8e Mon Sep 17 00:00:00 2001
From: NAKAMURA Takumi <geek4civic at gmail.com>
Date: Tue, 11 Aug 2026 21:44:31 +0900
Subject: [PATCH] SignAnalysisTest.cpp: Suppress a warning. [-Wunused-template]
---
clang/unittests/Analysis/FlowSensitive/SignAnalysisTest.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/clang/unittests/Analysis/FlowSensitive/SignAnalysisTest.cpp b/clang/unittests/Analysis/FlowSensitive/SignAnalysisTest.cpp
index b8fc528dbdce0..08c1bdc4f58ed 100644
--- a/clang/unittests/Analysis/FlowSensitive/SignAnalysisTest.cpp
+++ b/clang/unittests/Analysis/FlowSensitive/SignAnalysisTest.cpp
@@ -444,6 +444,7 @@ void runDataflow(llvm::StringRef Code, Matcher Match,
// FIXME add this to testing support.
template <typename NodeType, typename MatcherType>
+[[maybe_unused]]
const NodeType *findFirst(ASTContext &ASTCtx, const MatcherType &M) {
auto TargetNodes = match(M.bind("v"), ASTCtx);
assert(TargetNodes.size() == 1 && "Match must be unique");
More information about the cfe-commits
mailing list