Home | History | Annotate | Download | only in Sema

Lines Matching refs:Result

91         // We therefore do not perform any name lookup if the result would
121 LookupResult Result(*this, &II, NameLoc, Kind);
127 LookupQualifiedName(Result, LookupCtx);
129 if (ObjectTypePtr && Result.empty()) {
136 LookupName(Result, S);
140 LookupName(Result, S);
144 switch (Result.getResultKind()) {
149 Result.suppressDiagnostics();
158 if (Result.getAmbiguityKind() == LookupResult::AmbiguousTagHiding) {
159 Result.suppressDiagnostics();
164 for (LookupResult::iterator Res = Result.begin(), ResEnd = Result.end();
176 // to even assume that the result is a type. In this case, don't
181 Result.suppressDiagnostics();
192 IIDecl = Result.getFoundDecl();
228 Result.suppressDiagnostics();
308 NamedDecl *Result = Corrected.getCorrectionDecl();
309 if ((isa<TypeDecl>(Result) || isa<ObjCInterfaceDecl>(Result)) &&
310 !Result->isInvalidDecl()) {
323 Diag(Result->getLocation(), diag::note_previous_decl)
326 SuggestedType = getTypeName(*Result->getIdentifier(), IILoc, S, SS,
380 /// \brief Determine whether the given result set contains either a type name
411 LookupResult Result(*this, Name, NameLoc, LookupOrdinaryName);
412 LookupParsedName(Result, S, &SS, !CurMethod);
418 if (!SS.isSet() && CurMethod && !isResultTypeOrTemplate(Result, NextToken)) {
419 ExprResult E = LookupInObjCMethod(Result, S, Name, true);
426 if (SynthesizeProvisionalIvar(Result, Name, NameLoc)) {
435 E = LookupInObjCMethod(Result, S, Name, true);
446 switch (Result.getResultKind()) {
454 return BuildDeclarationNameExpr(SS, Result, /*ADL=*/true);
469 Result.addDecl(D);
470 Result.resolveKind();
471 return BuildDeclarationNameExpr(SS, Result, /*ADL=*/false);
479 Result.clear(LookupTagName);
480 LookupParsedName(Result, S, &SS);
481 if (TagDecl *Tag = Result.getAsSingle<TagDecl>()) {
512 Result.clear(LookupOrdinaryName);
519 if (TypoCorrection Corrected = CorrectTypo(Result.getLookupNameInfo(),
520 Result.getLookupKind(), S, &SS)) {
556 Result.clear();
557 Result.setLookupName(Corrected.getCorrection());
558 if (FirstDecl) Result.addDecl(FirstDecl);
572 if (ObjCIvarDecl *Ivar = Result.getAsSingle<ObjCIvarDecl>()) {
573 Result.clear();
574 ExprResult E(LookupInObjCMethod(Result, S, Ivar->getIdentifier()));
583 Result.suppressDiagnostics();
588 // dependent bases, so we treat this result the same way as any other
610 hasAnyAcceptableTemplateNames(Result)) {
612 // A lookup that finds an injected-class-name (10.2) can result in an
620 // This filtering can make an ambiguous result into an unambiguous one,
622 FilterAcceptableTemplateNames(Result);
623 if (!Result.isAmbiguous()) {
634 (IsFilteredTemplateName || hasAnyAcceptableTemplateNames(Result))) {
642 FilterAcceptableTemplateNames(Result);
644 if (!Result.empty()) {
647 if (Result.end() - Result.begin() > 1) {
649 Template = Context.getOverloadedTemplateName(Result.begin(),
650 Result.end());
653 = cast<TemplateDecl>((*Result.begin())->getUnderlyingDecl());
668 Result.suppressDiagnostics();
677 NamedDecl *FirstDecl = (*Result.begin())->getUnderlyingDecl();
698 Result.suppressDiagnostics();
706 if (!Result.empty() && (*Result.begin())->isCXXClassMember())
707 return BuildPossibleImplicitMemberExpr(SS, Result, 0);
709 bool ADL = UseArgumentDependentLookup(SS, Result, NextToken.is(tok::l_paren));
710 return BuildDeclarationNameExpr(SS, Result, ADL);
2927 ExprResult Result = S.RebuildExprInCurrentInstantiation(E);
2928 if (Result.isInvalid()) return true;
2929 DS.UpdateExprRep(Result.get());
3967 // FIXME: This won't give the correct result for
5258 LookupResult Result(S, DRE->getNameInfo(), Sema::LookupOrdinaryName,
5262 << Result.getLookupName()
5416 ExprResult Result = InitSeq.Perform(*this, Entity, Kind,
5419 if (Result.isInvalid()) {
5424 Init = Result.takeAs<Expr>();
5444 ExprResult Result = InitSeq.Perform(*this, Entity, Kind,
5447 if (Result.isInvalid()) {
5452 Init = Result.takeAs<Expr>();
5524 ExprResult Result = InitSeq.Perform(*this, Entity, Kind,
5527 if (Result.isInvalid()) {
5532 Init = Result.takeAs<Expr>();
5881 ExprResult result =
5885 if (!result.isInvalid()) {
5886 result = MaybeCreateExprWithCleanups(result);
5887 Expr *init = result.takeAs<Expr>();
6892 DeclResult Result = CheckClassTemplate(S, TagSpec, TUK, KWLoc,
6897 return Result.get();
7012 // shouldn't be. Doing so can result in ambiguities that we
7448 // maintained as a result of parser callbacks which can occur at
7714 // If the name is overloaded then get any declaration else get the single result
8894 // TODO: If the result value doesn't fit in an int, it must be a long or long