[clang] a129ca7 - [Analysis] Remove has_arg_iterator_range (NFC) (#137568)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 27 19:09:33 PDT 2025
Author: Kazu Hirata
Date: 2025-04-27T19:09:30-07:00
New Revision: a129ca7f178e5cb26735f4ceb82f0c92ea43ca1b
URL: https://github.com/llvm/llvm-project/commit/a129ca7f178e5cb26735f4ceb82f0c92ea43ca1b
DIFF: https://github.com/llvm/llvm-project/commit/a129ca7f178e5cb26735f4ceb82f0c92ea43ca1b.diff
LOG: [Analysis] Remove has_arg_iterator_range (NFC) (#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
Added:
Modified:
clang/lib/Analysis/ThreadSafety.cpp
Removed:
################################################################################
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