reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/Sema/SemaOverload.cpp
11347         Matches.push_back(std::make_pair(dap, Fn));
11358       if (Matches.size() > 1 && !eliminiateSuboptimalOverloadCandidates()) {
11366     if (S.getLangOpts().CUDA && Matches.size() > 1)
11395     auto Best = Matches.begin();
11396     for (auto I = Matches.begin()+1, E = Matches.end(); I != E; ++I)
11396     for (auto I = Matches.begin()+1, E = Matches.end(); I != E; ++I)
11408     if (!llvm::all_of(Matches, IsBestOrInferiorToBest))
11410     Matches[0] = *Best;
11411     Matches.resize(1);
11471     Matches.push_back(std::make_pair(CurAccessFunPair, Specialization));
11511         Matches.push_back(std::make_pair(
11551     assert(Ret || Matches.empty());
11568     for (unsigned I = 0, E = Matches.size(); I != E; ++I)
11569       MatchesCopy.addDecl(Matches[I].second, Matches[I].first.getAccess());
11569       MatchesCopy.addDecl(Matches[I].second, Matches[I].first.getAccess());
11577             << Matches[0].second->getDeclName(),
11584       Matches[0].first = Matches[Result - MatchesCopy.begin()].first;
11584       Matches[0].first = Matches[Result - MatchesCopy.begin()].first;
11585       Matches[0].second = cast<FunctionDecl>(*Result);
11586       Matches.resize(1);
11594     for (unsigned I = 0, N = Matches.size(); I != N; ) {
11595       if (Matches[I].second->getPrimaryTemplate() == nullptr)
11598         Matches[I] = Matches[--N];
11598         Matches[I] = Matches[--N];
11599         Matches.resize(N);
11605     S.EraseUnwantedCUDAMatches(dyn_cast<FunctionDecl>(S.CurContext), Matches);
11610     assert(Matches.empty());
11662     assert(Matches.size() > 1);
11671   int getNumMatches() const { return Matches.size(); }
11674     if (Matches.size() != 1) return nullptr;
11675     return Matches[0].second;
11679     if (Matches.size() != 1) return nullptr;
11680     return &Matches[0].first;