Home | History | Annotate | Download | only in Sema

Lines Matching refs:Found

368   LookupResult Found(*this, NNS->getAsIdentifier(), SourceLocation(),
370 LookupName(Found, S);
371 assert(!Found.isAmbiguous() && "Cannot handle ambiguities here yet");
373 if (!Found.isSingleResult())
376 NamedDecl *Result = Found.getFoundDecl();
386 LookupResult Found(*this, IdInfo.Identifier, IdInfo.IdentifierLoc,
403 Found.setContextRange(SS.getRange());
417 LookupQualifiedName(Found, LookupCtx);
421 LookupName(Found, S);
423 Found.suppressDiagnostics();
425 return Found.getAsSingle<NamespaceDecl>();
491 LookupResult Found(*this, IdInfo.Identifier, IdInfo.IdentifierLoc,
512 Found.setContextRange(SS.getRange());
527 LookupQualifiedName(Found, LookupCtx);
529 if (!ObjectType.isNull() && Found.empty()) {
538 // the scope of the class of the object expression. If the name is found
540 // shall refer to a class-name. If the name is found only in the
551 LookupName(Found, S);
553 Found.addDecl(ScopeLookupResult);
559 LookupName(Found, S);
562 if (Found.isAmbiguous())
567 if (Found.empty() && isDependent &&
583 if (Found.empty() && !ErrorRecoveryLookup) {
584 // If identifier is not found as class-name-or-namespace-name, but is found
586 LookupResult R(*this, Found.getLookupNameInfo(), LookupOrdinaryName);
594 // The identifier is found in ordinary lookup. If correction to colon is
617 if (Found.empty() && !ErrorRecoveryLookup && !getLangOpts().MSVCCompat) {
618 // We haven't found anything, and we're not recovering from a
620 DeclarationName Name = Found.getLookupName();
621 Found.clear();
624 Found.getLookupNameInfo(), Found.getLookupKind(), S, &SS, CCC,
641 SourceRange(Found.getNameLoc()));
644 Found.addDecl(ND);
645 Found.setLookupName(Corrected.getCorrection());
647 Found.setLookupName(IdInfo.Identifier);
652 Found.isSingleResult() ? Found.getRepresentativeDecl() : nullptr;
663 // [...] If the name is found in both contexts, the
666 // We already found the name in the scope of the object. Now, look
697 // Fall through so that we'll pick the name we found in the object
775 if (Found.empty()) {
776 Found.clear(LookupOrdinaryName);
777 LookupName(Found, S);
812 if (!Found.empty()) {
813 if (TypeDecl *TD = Found.getAsSingle<TypeDecl>())
819 if (NamedDecl *ND = Found.getAsSingle<NamedDecl>())
1038 // function's class. If it is not found, or if the name is part of