Home | History | Annotate | Download | only in Sema

Lines Matching refs:Found

341   LookupResult Found(*this, NNS->getAsIdentifier(), SourceLocation(),
343 LookupName(Found, S);
344 assert(!Found.isAmbiguous() && "Cannot handle ambiguities here yet");
346 if (!Found.isSingleResult())
349 NamedDecl *Result = Found.getFoundDecl();
361 LookupResult Found(*this, &II, IdLoc, LookupNestedNameSpecifierName);
377 Found.setContextRange(SS.getRange());
391 LookupQualifiedName(Found, LookupCtx);
395 LookupName(Found, S);
397 Found.suppressDiagnostics();
399 if (NamedDecl *ND = Found.getAsSingle<NamedDecl>())
467 LookupResult Found(*this, &Identifier, IdentifierLoc,
486 Found.setContextRange(SS.getRange());
501 LookupQualifiedName(Found, LookupCtx);
503 if (!ObjectType.isNull() && Found.empty()) {
512 // the scope of the class of the object expression. If the name is found
514 // shall refer to a class-name. If the name is found only in the
525 LookupName(Found, S);
527 Found.addDecl(ScopeLookupResult);
533 LookupName(Found, S);
536 if (Found.isAmbiguous())
541 if (Found.empty() && isDependent &&
557 if (Found.empty() && !ErrorRecoveryLookup) {
558 // If identifier is not found as class-name-or-namespace-name, but is found
560 LookupResult R(*this, Found.getLookupNameInfo(), LookupOrdinaryName);
568 // The identifier is found in ordinary lookup. If correction to colon is
588 if (Found.empty() && !ErrorRecoveryLookup && !getLangOpts().MSVCCompat) {
589 // We haven't found anything, and we're not recovering from a
591 DeclarationName Name = Found.getLookupName();
592 Found.clear();
594 Found.getLookupNameInfo(), Found.getLookupKind(), S, &SS,
611 Found.addDecl(ND);
612 Found.setLookupName(Corrected.getCorrection());
614 Found.setLookupName(&Identifier);
618 NamedDecl *SD = Found.getAsSingle<NamedDecl>();
629 // [...] If the name is found in both contexts, the
632 // We already found the name in the scope of the object. Now, look
663 // Fall through so that we'll pick the name we found in the object
741 if (Found.empty()) {
742 Found.clear(LookupOrdinaryName);
743 LookupName(Found, S);
776 if (!Found.empty()) {
777 if (TypeDecl *TD = Found.getAsSingle<TypeDecl>())
783 if (NamedDecl *ND = Found.getAsSingle<NamedDecl>())
996 // function's class. If it is not found, or if the name is part of