Home | History | Annotate | Download | only in Sema

Lines Matching defs:Result

158         // We therefore do not perform any name lookup if the result would
188 LookupResult Result(*this, &II, NameLoc, Kind);
194 LookupQualifiedName(Result, LookupCtx);
196 if (ObjectTypePtr && Result.empty()) {
203 LookupName(Result, S);
207 LookupName(Result, S);
211 switch (Result.getResultKind()) {
216 TypoCorrection Correction = CorrectTypo(Result.getLookupNameInfo(),
245 << Result.getLookupName() << CorrectedQuotedStr << isClassName
262 Result.suppressDiagnostics();
271 if (Result.getAmbiguityKind() == LookupResult::AmbiguousTagHiding) {
272 Result.suppressDiagnostics();
277 for (LookupResult::iterator Res = Result.begin(), ResEnd = Result.end();
289 // to even assume that the result is a type. In this case, don't
294 Result.suppressDiagnostics();
305 IIDecl = Result.getFoundDecl();
344 Result.suppressDiagnostics();
429 NamedDecl *Result = Corrected.getCorrectionDecl();
442 Diag(Result->getLocation(), diag::note_previous_decl)
445 SuggestedType = getTypeName(*Result->getIdentifier(), IILoc, S, SS,
500 /// \brief Determine whether the given result set contains either a type name
517 static bool isTagTypeWithMissingTag(Sema &SemaRef, LookupResult &Result,
557 for (LookupResult::iterator I = Result.begin(), IEnd = Result.end();
563 Result.clear(Sema::LookupTagName);
564 SemaRef.LookupParsedName(Result, S, &SS);
602 LookupResult Result(*this, Name, NameLoc, LookupOrdinaryName);
603 LookupParsedName(Result, S, &SS, !CurMethod);
609 if (!SS.isSet() && CurMethod && !isResultTypeOrTemplate(Result, NextToken)) {
610 ExprResult E = LookupInObjCMethod(Result, S, Name, true);
619 switch (Result.getResultKind()) {
627 return BuildDeclarationNameExpr(SS, Result, /*ADL=*/true);
642 Result.addDecl(D);
643 Result.resolveKind();
644 return BuildDeclarationNameExpr(SS, Result, /*ADL=*/false);
652 isTagTypeWithMissingTag(*this, Result, S, SS, Name, NameLoc)) {
660 if (TypoCorrection Corrected = CorrectTypo(Result.getLookupNameInfo(),
661 Result.getLookupKind(), S,
702 Result.clear();
703 Result.setLookupName(Corrected.getCorrection());
705 Result.addDecl(FirstDecl);
714 if (ObjCIvarDecl *Ivar = Result.getAsSingle<ObjCIvarDecl>()) {
715 Result.clear();
716 ExprResult E(LookupInObjCMethod(Result, S, Ivar->getIdentifier()));
725 Result.suppressDiagnostics();
730 // dependent bases, so we treat this result the same way as any other
755 hasAnyAcceptableTemplateNames(Result)) {
757 // A lookup that finds an injected-class-name (10.2) can result in an
765 // This filtering can make an ambiguous result into an unambiguous one,
767 FilterAcceptableTemplateNames(Result);
768 if (!Result.isAmbiguous()) {
779 (IsFilteredTemplateName || hasAnyAcceptableTemplateNames(Result))) {
787 FilterAcceptableTemplateNames(Result);
789 if (!Result.empty()) {
792 if (Result.end() - Result.begin() > 1) {
794 Template = Context.getOverloadedTemplateName(Result.begin(),
795 Result.end());
798 = cast<TemplateDecl>((*Result.begin())->getUnderlyingDecl());
813 Result.suppressDiagnostics();
822 NamedDecl *FirstDecl = (*Result.begin())->getUnderlyingDecl();
845 Result.suppressDiagnostics();
864 isTagTypeWithMissingTag(*this, Result, S, SS, Name, NameLoc)) {
865 TypeDecl *Type = Result.getAsSingle<TypeDecl>();
875 return BuildPossibleImplicitMemberExpr(SS, SourceLocation(), Result, 0);
877 bool ADL = UseArgumentDependentLookup(SS, Result, NextToken.is(tok::l_paren));
878 return BuildDeclarationNameExpr(SS, Result, ADL);
3429 ExprResult Result = S.RebuildExprInCurrentInstantiation(E);
3430 if (Result.isInvalid()) return true;
3431 DS.UpdateExprRep(Result.get());
4599 // FIXME: This won't give the correct result for
4806 NamedDecl *Result = NULL;
4864 Result = SemaRef.ActOnFunctionDeclarator(
4876 Result = NULL;
4935 return Result;
5770 if (NamedDecl *Result = DiagnoseInvalidRedeclaration(*this, Previous,
5774 return Result;
5781 if (NamedDecl *Result = DiagnoseInvalidRedeclaration(*this, Previous,
5785 return Result;
6328 LookupResult Result(S, DRE->getNameInfo(), Sema::LookupOrdinaryName,
6335 << Result.getLookupName()
6536 ExprResult Result = forceUnknownAnyToType(Init, Context.getObjCIdType());
6537 if (Result.isInvalid()) {
6541 Init = Result.take();
6564 ExprResult Result = InitSeq.Perform(*this, Entity, Kind,
6566 if (Result.isInvalid()) {
6571 Init = Result.takeAs<Expr>();
7045 ExprResult result =
7049 if (!result.isInvalid()) {
7050 result = MaybeCreateExprWithCleanups(result);
7051 Expr *init = result.takeAs<Expr>();
8383 DeclResult Result = CheckClassTemplate(S, TagSpec, TUK, KWLoc,
8389 return Result.get();
8499 // shouldn't be. Doing so can result in ambiguities that we
8950 // maintained as a result of parser callbacks which can occur at
10805 // TODO: If the result value doesn't fit in an int, it must be a long or long