[clang] SignAnalysisTest.cpp: Suppress a warning. [-Wunused-template] (PR #215563)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 11 06:41:18 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: NAKAMURA Takumi (chapuni)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/215563.diff
1 Files Affected:
- (modified) clang/unittests/Analysis/FlowSensitive/SignAnalysisTest.cpp (+1)
``````````diff
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");
``````````
</details>
https://github.com/llvm/llvm-project/pull/215563
More information about the cfe-commits
mailing list