Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions clang/lib/Analysis/ThreadSafety.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
Loading