Skip to content

Commit a129ca7

Browse files
[Analysis] Remove has_arg_iterator_range (NFC) (#137568)
The last use was removed by: commit f8afb8f Author: Aaron Puchert <[email protected]> Date: Fri Apr 29 22:12:21 2022 +0200
1 parent 92c3af7 commit a129ca7

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

clang/lib/Analysis/ThreadSafety.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,25 +1231,6 @@ static const ValueDecl *getValueDecl(const Expr *Exp) {
12311231
return nullptr;
12321232
}
12331233

1234-
namespace {
1235-
1236-
template <typename Ty>
1237-
class has_arg_iterator_range {
1238-
using yes = char[1];
1239-
using no = char[2];
1240-
1241-
template <typename Inner>
1242-
static yes& test(Inner *I, decltype(I->args()) * = nullptr);
1243-
1244-
template <typename>
1245-
static no& test(...);
1246-
1247-
public:
1248-
static const bool value = sizeof(test<Ty>(nullptr)) == sizeof(yes);
1249-
};
1250-
1251-
} // namespace
1252-
12531234
bool ThreadSafetyAnalyzer::inCurrentScope(const CapabilityExpr &CapE) {
12541235
const threadSafety::til::SExpr *SExp = CapE.sexpr();
12551236
assert(SExp && "Null expressions should be ignored");

0 commit comments

Comments
 (0)