From dc12390ff2cb857ce68fd75c5e0c1e2536c1ef67 Mon Sep 17 00:00:00 2001 From: Kazu Hirata 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 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 -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");