Lines Matching full:found

382   LookupResult Found(*this, NNS->getAsIdentifier(), SourceLocation(),  in FindFirstQualifierInScope()  local
384 LookupName(Found, S); in FindFirstQualifierInScope()
385 assert(!Found.isAmbiguous() && "Cannot handle ambiguities here yet"); in FindFirstQualifierInScope()
387 if (!Found.isSingleResult()) in FindFirstQualifierInScope()
390 NamedDecl *Result = Found.getFoundDecl(); in FindFirstQualifierInScope()
400 LookupResult Found(*this, IdInfo.Identifier, IdInfo.IdentifierLoc, in isNonTypeNestedNameSpecifier() local
417 Found.setContextRange(SS.getRange()); in isNonTypeNestedNameSpecifier()
431 LookupQualifiedName(Found, LookupCtx); in isNonTypeNestedNameSpecifier()
435 LookupName(Found, S); in isNonTypeNestedNameSpecifier()
437 Found.suppressDiagnostics(); in isNonTypeNestedNameSpecifier()
439 return Found.getAsSingle<NamespaceDecl>(); in isNonTypeNestedNameSpecifier()
505 LookupResult Found(*this, IdInfo.Identifier, IdInfo.IdentifierLoc, in BuildCXXNestedNameSpecifier() local
526 Found.setContextRange(SS.getRange()); in BuildCXXNestedNameSpecifier()
541 LookupQualifiedName(Found, LookupCtx); in BuildCXXNestedNameSpecifier()
543 if (!ObjectType.isNull() && Found.empty()) { in BuildCXXNestedNameSpecifier()
552 // the scope of the class of the object expression. If the name is found in BuildCXXNestedNameSpecifier()
554 // shall refer to a class-name. If the name is found only in the in BuildCXXNestedNameSpecifier()
565 LookupName(Found, S); in BuildCXXNestedNameSpecifier()
567 Found.addDecl(ScopeLookupResult); in BuildCXXNestedNameSpecifier()
573 LookupName(Found, S); in BuildCXXNestedNameSpecifier()
576 if (Found.isAmbiguous()) in BuildCXXNestedNameSpecifier()
581 if (Found.empty() && isDependent && in BuildCXXNestedNameSpecifier()
597 if (Found.empty() && !ErrorRecoveryLookup) { in BuildCXXNestedNameSpecifier()
598 // If identifier is not found as class-name-or-namespace-name, but is found in BuildCXXNestedNameSpecifier()
600 LookupResult R(*this, Found.getLookupNameInfo(), LookupOrdinaryName); in BuildCXXNestedNameSpecifier()
608 // The identifier is found in ordinary lookup. If correction to colon is in BuildCXXNestedNameSpecifier()
631 if (Found.empty() && !ErrorRecoveryLookup && !getLangOpts().MSVCCompat) { in BuildCXXNestedNameSpecifier()
632 // We haven't found anything, and we're not recovering from a in BuildCXXNestedNameSpecifier()
634 DeclarationName Name = Found.getLookupName(); in BuildCXXNestedNameSpecifier()
635 Found.clear(); in BuildCXXNestedNameSpecifier()
638 Found.getLookupNameInfo(), Found.getLookupKind(), S, &SS, CCC, in BuildCXXNestedNameSpecifier()
655 SourceRange(Found.getNameLoc())); in BuildCXXNestedNameSpecifier()
658 Found.addDecl(ND); in BuildCXXNestedNameSpecifier()
659 Found.setLookupName(Corrected.getCorrection()); in BuildCXXNestedNameSpecifier()
661 Found.setLookupName(IdInfo.Identifier); in BuildCXXNestedNameSpecifier()
666 Found.isSingleResult() ? Found.getRepresentativeDecl() : nullptr; in BuildCXXNestedNameSpecifier()
677 // [...] If the name is found in both contexts, the in BuildCXXNestedNameSpecifier()
680 // We already found the name in the scope of the object. Now, look in BuildCXXNestedNameSpecifier()
711 // Fall through so that we'll pick the name we found in the object in BuildCXXNestedNameSpecifier()
793 if (Found.empty()) { in BuildCXXNestedNameSpecifier()
794 Found.clear(LookupOrdinaryName); in BuildCXXNestedNameSpecifier()
795 LookupName(Found, S); in BuildCXXNestedNameSpecifier()
830 if (!Found.empty()) { in BuildCXXNestedNameSpecifier()
831 if (TypeDecl *TD = Found.getAsSingle<TypeDecl>()) { in BuildCXXNestedNameSpecifier()
834 } else if (Found.getAsSingle<TemplateDecl>()) { in BuildCXXNestedNameSpecifier()
841 if (NamedDecl *ND = Found.getAsSingle<NamedDecl>()) in BuildCXXNestedNameSpecifier()
1059 // function's class. If it is not found, or if the name is part of in ShouldEnterDeclaratorScope()