[clang] [Analysis] Remove has_arg_iterator_range (NFC) (PR #137568)
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 27 18:04:06 PDT 2025
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/137568
The last use was removed by:
commit f8afb8fdedae04ad2670857c97925c439d47d862
Author: Aaron Puchert <aaron.puchert at sap.com>
Date: Fri Apr 29 22:12:21 2022 +0200
>From dc12390ff2cb857ce68fd75c5e0c1e2536c1ef67 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Sun, 27 Apr 2025 17:09:56 -0700
Subject: [PATCH] [Analysis] Remove has_arg_iterator_range (NFC)
The last use was removed by:
commit f8afb8fdedae04ad2670857c97925c439d47d862
Author: Aaron Puchert <aaron.puchert at sap.com>
Date: Fri Apr 29 22:12:21 2022 +0200
---
clang/lib/Analysis/ThreadSafety.cpp | 19 -------------------
1 file changed, 19 deletions(-)
diff --git a/clang/lib/Analysis/ThreadSafety.cpp b/clang/lib/Analysis/ThreadSafety.cpp
index 42fb0fe7dcdaa..f50c2adda4bc0 100644
--- a/clang/lib/Analysis/ThreadSafety.cpp
+++ b/clang/lib/Analysis/ThreadSafety.cpp
@@ -1231,25 +1231,6 @@ static const ValueDecl *getValueDecl(const Expr *Exp) {
return nullptr;
}
-namespace {
-
-template <typename Ty>
-class has_arg_iterator_range {
- using yes = char[1];
- using no = char[2];
-
- template <typename Inner>
- static yes& test(Inner *I, decltype(I->args()) * = nullptr);
-
- template <typename>
- static no& test(...);
-
-public:
- static const bool value = sizeof(test<Ty>(nullptr)) == sizeof(yes);
-};
-
-} // namespace
-
bool ThreadSafetyAnalyzer::inCurrentScope(const CapabilityExpr &CapE) {
const threadSafety::til::SExpr *SExp = CapE.sexpr();
assert(SExp && "Null expressions should be ignored");
More information about the cfe-commits
mailing list