From a129ca7f178e5cb26735f4ceb82f0c92ea43ca1b Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 27 Apr 2025 19:09:30 -0700 Subject: [Analysis] Remove has_arg_iterator_range (NFC) (#137568) The last use was removed by: commit f8afb8fdedae04ad2670857c97925c439d47d862 Author: Aaron Puchert Date: Fri Apr 29 22:12:21 2022 +0200 --- clang/lib/Analysis/ThreadSafety.cpp | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'clang/lib/Analysis/ThreadSafety.cpp') diff --git a/clang/lib/Analysis/ThreadSafety.cpp b/clang/lib/Analysis/ThreadSafety.cpp index 42fb0fe..f50c2ad 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 -class has_arg_iterator_range { - using yes = char[1]; - using no = char[2]; - - template - static yes& test(Inner *I, decltype(I->args()) * = nullptr); - - template - static no& test(...); - -public: - static const bool value = sizeof(test(nullptr)) == sizeof(yes); -}; - -} // namespace - bool ThreadSafetyAnalyzer::inCurrentScope(const CapabilityExpr &CapE) { const threadSafety::til::SExpr *SExp = CapE.sexpr(); assert(SExp && "Null expressions should be ignored"); -- cgit v1.1