Home
last modified time | relevance | path

Searched refs:ExprResult (Results 1 – 25 of 41) sorted by relevance

12

/external/clang/include/clang/Parse/
DParser.h216 typedef clang::ExprResult ExprResult; typedef
226 ExprResult ExprError() { return ExprResult(true); } in ExprError()
229 ExprResult ExprError(const DiagnosticBuilder &) { return ExprError(); } in ExprError()
232 ExprResult ExprEmpty() { return ExprResult(false); } in ExprEmpty()
454 static ExprResult getExprAnnotation(Token &Tok) { in getExprAnnotation()
456 return ExprResult((Expr *)Tok.getAnnotationValue()); in getExprAnnotation()
458 return ExprResult(true); in getExprAnnotation()
463 static void setExprAnnotation(Token &Tok, ExprResult ER) { in setExprAnnotation()
1057 ExprResult& Init);
1110 ExprResult ParseSimpleAsm(SourceLocation *EndLoc = 0);
[all …]
/external/clang/include/clang/Sema/
DSema.h894 ExprResult Owned(Expr* E) { return E; } in Owned()
895 ExprResult Owned(ExprResult R) { return R; } in Owned()
1255 ExprResult Expr;
1263 NameClassification(ExprResult Expr) : Kind(NC_Expression), Expr(Expr) {} in NameClassification()
1301 ExprResult getExpression() const { in getExpression()
1832 CastKind PrepareCastToObjCObjectPointer(ExprResult &E);
1851 ExprResult PerformMoveOrCopyInitialization(const InitializedEntity &Entity,
1858 ExprResult Init);
1859 ExprResult PerformCopyInitialization(const InitializedEntity &Entity,
1861 ExprResult Init,
[all …]
DOwnership.h233 typedef ActionResult<Expr*> ExprResult;
248 inline ExprResult ExprError() { return ExprResult(true); }
251 inline ExprResult ExprError(const DiagnosticBuilder&) { return ExprError(); }
254 inline ExprResult ExprEmpty() { return ExprResult(false); }
257 inline Expr *AssertSuccess(ExprResult R) {
/external/clang/lib/Sema/
DSemaPseudoObject.cpp182 ExprResult buildRValueOperation(Expr *op);
183 ExprResult buildAssignmentOperation(Scope *Sc,
187 ExprResult buildIncDecOperation(Scope *Sc, SourceLocation opLoc,
191 virtual ExprResult complete(Expr *syntacticForm);
212 virtual ExprResult buildGet() = 0;
213 virtual ExprResult buildSet(Expr *, SourceLocation,
234 ExprResult buildRValueOperation(Expr *op);
235 ExprResult buildAssignmentOperation(Scope *Sc,
239 ExprResult buildIncDecOperation(Scope *Sc, SourceLocation opLoc,
243 bool tryBuildGetOfReference(Expr *op, ExprResult &result);
[all …]
DTreeTransform.h132 static inline ExprResult Owned(Expr *E) { return E; } in Owned()
324 ExprResult TransformExpr(Expr *E);
333 ExprResult TransformInitializer(Expr *Init, bool CXXDirectInit);
581 ExprResult TransformCXXNamedCastExpr(CXXNamedCastExpr *E);
584 ExprResult TransformLambdaScope(LambdaExpr *E, CXXMethodDecl *CallOperator);
586 ExprResult TransformAddressOfOperand(Expr *E);
587 ExprResult TransformDependentScopeDeclRefExpr(DependentScopeDeclRefExpr *E,
593 ExprResult Transform##Node(Node *E);
1252 ExprResult RebuildObjCAtSynchronizedOperand(SourceLocation atLoc, in RebuildObjCAtSynchronizedOperand()
1389 ExprResult RebuildDeclarationNameExpr(const CXXScopeSpec &SS, in RebuildDeclarationNameExpr()
[all …]
DSemaExpr.cpp401 ExprResult Sema::DefaultFunctionArrayConversion(Expr *E) { in DefaultFunctionArrayConversion()
404 ExprResult result = CheckPlaceholderExpr(E); in DefaultFunctionArrayConversion()
453 ExprResult Sema::DefaultLvalueConversion(Expr *E) { in DefaultLvalueConversion()
456 ExprResult result = CheckPlaceholderExpr(E); in DefaultLvalueConversion()
515 ExprResult Res = Owned(ImplicitCastExpr::Create(Context, T, CK_LValueToRValue, in DefaultLvalueConversion()
530 ExprResult Sema::DefaultFunctionArrayLvalueConversion(Expr *E) { in DefaultFunctionArrayLvalueConversion()
531 ExprResult Res = DefaultFunctionArrayConversion(E); in DefaultFunctionArrayLvalueConversion()
546 ExprResult Sema::UsualUnaryConversions(Expr *E) { in UsualUnaryConversions()
548 ExprResult Res = DefaultFunctionArrayLvalueConversion(E); in UsualUnaryConversions()
595 ExprResult Sema::DefaultArgumentPromotion(Expr *E) { in DefaultArgumentPromotion()
[all …]
DSemaExprCXX.cpp290 ExprResult Sema::BuildCXXTypeId(QualType TypeInfoType, in BuildCXXTypeId()
313 ExprResult Sema::BuildCXXTypeId(QualType TypeInfoType, in BuildCXXTypeId()
319 ExprResult result = CheckPlaceholderExpr(E); in BuildCXXTypeId()
340 ExprResult Result = TransformToPotentiallyEvaluated(E); in BuildCXXTypeId()
368 ExprResult
415 ExprResult Sema::BuildCXXUuidof(QualType TypeInfoType, in BuildCXXUuidof()
431 ExprResult Sema::BuildCXXUuidof(QualType TypeInfoType, in BuildCXXUuidof()
447 ExprResult
481 ExprResult
490 ExprResult
[all …]
DSemaStmt.cpp39 StmtResult Sema::ActOnExprStmt(ExprResult FE) { in ActOnExprStmt()
428 ExprResult CondResult(CondVal.release()); in ActOnIfStmt()
558 ExprResult CondResult; in ActOnStartOfSwitchStmt()
750 ExprResult ConvLo = in ActOnFinishSwitchStmt()
870 ExprResult ConvHi = in ActOnFinishSwitchStmt()
1157 ExprResult CondResult(Cond.release()); in ActOnWhileStmt()
1185 ExprResult CondResult = CheckBooleanCondition(Cond, DoLoc); in ActOnDoStmt()
1433 ExprResult SecondResult(second.release()); in ActOnForStmt()
1464 ExprResult result = CheckPlaceholderExpr(E); in ActOnForEachLValueExpr()
1468 ExprResult FullExpr = ActOnFinishFullExpr(E); in ActOnForEachLValueExpr()
[all …]
DSemaExprObjC.cpp34 ExprResult Sema::ParseObjCStringLiteral(SourceLocation *AtLocs, in ParseObjCStringLiteral()
79 ExprResult Sema::BuildObjCStringLiteral(SourceLocation AtLoc, StringLiteral *S){ in BuildObjCStringLiteral()
257 ExprResult Sema::BuildObjCNumericLiteral(SourceLocation AtLoc, Expr *Number) { in BuildObjCNumericLiteral()
294 ExprResult ConvertedNumber = PerformCopyInitialization(Entity, in BuildObjCNumericLiteral()
307 ExprResult Sema::ActOnObjCBoolLiteral(SourceLocation AtLoc, in ActOnObjCBoolLiteral()
310 ExprResult Inner; in ActOnObjCBoolLiteral()
326 static ExprResult CheckObjCCollectionLiteralElement(Sema &S, Expr *Element, in CheckObjCCollectionLiteralElement()
332 ExprResult Result = S.CheckPlaceholderExpr(Element); in CheckObjCCollectionLiteralElement()
420 ExprResult Sema::BuildObjCBoxedExpr(SourceRange SR, Expr *ValueExpr) { in BuildObjCBoxedExpr()
429 ExprResult RValue = DefaultFunctionArrayLvalueConversion(ValueExpr); in BuildObjCBoxedExpr()
[all …]
DSemaExprMember.cpp216 ExprResult
428 ExprResult
627 ExprResult
655 ExprResult BaseResult = Owned(Base); in BuildMemberReferenceExpr()
656 ExprResult Result = in BuildMemberReferenceExpr()
681 static ExprResult
687 ExprResult
713 ExprResult result in BuildAnonymousStructUnionMemberReference()
820 ExprResult
851 ExprResult RetryExpr; in BuildMemberReferenceExpr()
[all …]
DSemaTemplateInstantiate.cpp804 ExprResult TransformPredefinedExpr(PredefinedExpr *E);
805 ExprResult TransformDeclRefExpr(DeclRefExpr *E);
806 ExprResult TransformCXXDefaultArgExpr(CXXDefaultArgExpr *E);
808 ExprResult TransformTemplateParmRefExpr(DeclRefExpr *E,
810 ExprResult TransformSubstNonTypeTemplateParmPackExpr(
814 ExprResult RebuildParmVarDeclRefExpr(ParmVarDecl *PD, SourceLocation Loc);
817 ExprResult TransformFunctionParmPackRefExpr(DeclRefExpr *E,
823 ExprResult TransformFunctionParmPackExpr(FunctionParmPackExpr *E);
848 ExprResult TransformCallExpr(CallExpr *CE) { in TransformCallExpr()
850 ExprResult Result = in TransformCallExpr()
[all …]
DSemaCast.cpp48 CastOperation(Sema &S, QualType destType, ExprResult src) in CastOperation()
63 ExprResult SrcExpr;
85 ExprResult complete(CastExpr *castExpr) { in complete()
181 static TryCastResult TryStaticMemberPointerUpcast(Sema &Self, ExprResult &SrcExpr,
189 static TryCastResult TryStaticImplicitCast(Sema &Self, ExprResult &SrcExpr,
195 static TryCastResult TryStaticCast(Sema &Self, ExprResult &SrcExpr,
204 static TryCastResult TryReinterpretCast(Sema &Self, ExprResult &SrcExpr,
212 ExprResult
235 ExprResult
239 ExprResult Ex = Owned(E); in BuildCXXNamedCast()
[all …]
DSemaOverload.cpp40 static ExprResult
53 ExprResult E = S.Owned(DRE); in CreateFunctionRefExpr()
841 ExprResult result = S.CheckPlaceholderExpr(E); in checkPlaceholderForOverload()
1280 ExprResult
1287 ExprResult
4780 ExprResult
4827 ExprResult FromRes = in PerformObjectArgumentInitialization()
4856 ExprResult Sema::PerformContextuallyConvertToBool(Expr *From) { in PerformContextuallyConvertToBool()
4927 ExprResult Sema::CheckConvertedConstantExpression(Expr *From, QualType T, in CheckConvertedConstantExpression()
4980 ExprResult Result = PerformImplicitConversion(From, T, ICS, AA_Converting); in CheckConvertedConstantExpression()
[all …]
DSemaInit.cpp322 ExprResult MemberInit in FillInValueInitForField()
431 ExprResult ElementInit in FillInValueInitializations()
791 ExprResult Result = in CheckSubElementType()
813 ExprResult ExprRes = SemaRef.Owned(expr); in CheckSubElementType()
942 ExprResult Result = in CheckScalarType()
1005 ExprResult Result = in CheckReferenceType()
1053 ExprResult Result = in CheckVectorType()
2163 static ExprResult
2168 ExprResult Result = S.VerifyIntegerConstantExpression(Index, &Value); in CheckArrayDesignatorExpr()
2180 ExprResult Sema::ActOnDesignatedInitializer(Designation &Desig, in ActOnDesignatedInitializer()
[all …]
DSemaTemplateVariadic.cpp416 ExprResult Result = ActOnPackExpansion(Arg.getAsExpr(), EllipsisLoc); in ActOnPackExpansion()
491 ExprResult Sema::ActOnPackExpansion(Expr *Pattern, SourceLocation EllipsisLoc) { in ActOnPackExpansion()
495 ExprResult Sema::CheckPackExpansion(Expr *Pattern, SourceLocation EllipsisLoc, in CheckPackExpansion()
798 ExprResult Sema::ActOnSizeofParameterPackExpr(Scope *S, in ActOnSizeofParameterPackExpr()
DSemaTemplate.cpp407 ExprResult
438 ExprResult
735 ExprResult DefaultRes = CheckTemplateArgument(Param, Param->getType(), Default, Converted); in ActOnNonTypeTemplateParameter()
2275 ExprResult Sema::BuildTemplateIdExpr(const CXXScopeSpec &SS, in BuildTemplateIdExpr()
2309 ExprResult
2610 static ExprResult
2724 ExprResult Arg = SubstDefaultTemplateArgument(*this, Template, in SubstDefaultTemplateArgumentIfAvailable()
2835 ExprResult Res = in CheckTemplateArgument()
2874 ExprResult E = Owned(DependentScopeDeclRefExpr::Create(Context, in CheckTemplateArgument()
3224 ExprResult E = SubstDefaultTemplateArgument(*this, Template, in CheckTemplateArgumentList()
[all …]
DSemaDeclCXX.cpp250 ExprResult Result = InitSeq.Perform(*this, Entity, Kind, Arg); in SetParamDefaultArgument()
1991 ExprResult Init = InitExpr; in ActOnCXXInClassMemberInitializer()
2423 ExprResult MemberInit = InitSeq.Perform(*this, MemberEntity, Kind, in BuildMemberInitializer()
2478 ExprResult DelegationInit = InitSeq.Perform(*this, DelegationEntity, Kind, in BuildDelegatingInitializer()
2615 ExprResult BaseInit = InitSeq.Perform(*this, BaseEntity, Kind, in BuildBaseInitializer()
2677 ExprResult BaseInit; in BuildImplicitBaseInitializer()
2692 ExprResult ArgExpr = in BuildImplicitBaseInitializer()
2817 ExprResult CtorArg in BuildImplicitMemberInitializer()
2863 ExprResult IterationVarRef in BuildImplicitMemberInitializer()
2907 ExprResult MemberInit in BuildImplicitMemberInitializer()
[all …]
/external/clang/lib/Parse/
DParseExpr.cpp119 ExprResult Parser::ParseExpression(TypeCastState isTypeCast) { in ParseExpression()
120 ExprResult LHS(ParseAssignmentExpression(isTypeCast)); in ParseExpression()
129 ExprResult
131 ExprResult LHS(ParseObjCAtExpression(AtLoc)); in ParseExpressionWithLeadingAt()
138 ExprResult
140 ExprResult LHS(true); in ParseExpressionWithLeadingExtension()
156 ExprResult Parser::ParseAssignmentExpression(TypeCastState isTypeCast) { in ParseAssignmentExpression()
166 ExprResult LHS = ParseCastExpression(/*isUnaryExpression=*/false, in ParseAssignmentExpression()
181 ExprResult
186 ExprResult R in ParseAssignmentExprWithObjCMessageExprStart()
[all …]
DParseInit.cpp149 ExprResult Parser::ParseInitializerWithPotentialDesignator() { in ParseInitializerWithPotentialDesignator()
225 ExprResult Idx; in ParseInitializerWithPotentialDesignator()
265 Idx = ExprResult(static_cast<Expr*>(TypeOrExpr)); in ParseInitializerWithPotentialDesignator()
341 ExprResult RHS(ParseConstantExpression()); in ParseInitializerWithPotentialDesignator()
399 ExprResult Parser::ParseBraceInitializer() { in ParseBraceInitializer()
436 ExprResult SubElt; in ParseBraceInitializer()
519 ExprResult SubElt; in ParseMicrosoftIfExistsBraceInitializer()
DParseExprCXX.cpp542 ExprResult Parser::ParseCXXIdExpression(bool isAddressOfOperand) { in ParseCXXIdExpression()
601 ExprResult Parser::ParseLambdaExpression() { in ParseLambdaExpression()
622 ExprResult Parser::TryParseLambdaExpression() { in TryParseLambdaExpression()
785 ExprResult Parser::ParseLambdaExpressionAfterIntroducer( in ParseLambdaExpressionAfterIntroducer()
832 ExprResult NoexceptExpr; in ParseLambdaExpressionAfterIntroducer()
964 ExprResult Parser::ParseCXXCasts() { in ParseCXXCasts()
1009 ExprResult Result = ParseExpression(); in ParseCXXCasts()
1030 ExprResult Parser::ParseCXXTypeid() { in ParseCXXTypeid()
1042 ExprResult Result; in ParseCXXTypeid()
1096 ExprResult Parser::ParseCXXUuidof() { in ParseCXXUuidof()
[all …]
DParseStmt.cpp314 ExprResult Expr(ParseExpression()); in ParseExprStatement()
405 ExprResult FilterExpr(ParseExpression()); in ParseSEHExceptBlock()
488 StmtResult Parser::ParseCaseStatement(bool MissingCase, ExprResult Expr) { in ParseCaseStatement()
531 ExprResult LHS(MissingCase ? Expr : ParseConstantExpression()); in ParseCaseStatement()
540 ExprResult RHS; in ParseCaseStatement()
848 ExprResult Res(ParseExpressionWithLeadingExtension(ExtLoc)); in ParseCompoundStatementBody()
890 bool Parser::ParseParenExprOrCondition(ExprResult &ExprResult, in ParseParenExprOrCondition() argument
898 ParseCXXCondition(ExprResult, DeclResult, Loc, ConvertToBoolean); in ParseParenExprOrCondition()
900 ExprResult = ParseExpression(); in ParseParenExprOrCondition()
904 if (!ExprResult.isInvalid() && ConvertToBoolean) in ParseParenExprOrCondition()
[all …]
DParseObjc.cpp1729 ExprResult Res; in ParseObjCThrowStmt()
1756 ExprResult operand(ParseExpression()); in ParseObjCSynchronizedStmt()
2029 ExprResult Res(ParseExpressionWithLeadingAt(AtLoc)); in ParseObjCAtStatement()
2043 ExprResult Parser::ParseObjCAtExpression(SourceLocation AtLoc) { in ParseObjCAtExpression()
2067 ExprResult Lit(Actions.ActOnNumericConstant(Tok)); in ParseObjCAtExpression()
2174 ExprResult Receiver = ParseExpression(); in ParseObjCXXMessageReceiver()
2203 ExprResult Receiver = ParseCXXTypeConstructExpression(DS); in ParseObjCXXMessageReceiver()
2279 ExprResult Parser::ParseObjCMessageExpression() { in ParseObjCMessageExpression()
2351 ExprResult Res(ParseExpression()); in ParseObjCMessageExpression()
2399 ExprResult
[all …]
DParseDeclCXX.cpp628 ExprResult AssertExpr(ParseConstantExpression()); in ParseStaticAssertDeclaration()
644 ExprResult AssertMessage(ParseStringLiteralExpression()); in ParseStaticAssertDeclaration()
670 ExprResult Result; in ParseDecltypeSpecifier()
761 DS.getRepAsExpr() : ExprResult()); in AnnotateExistingDecltypeSpecifier()
2023 ExprResult Init; in ParseCXXClassMemberDeclaration()
2131 ExprResult BitfieldSize; in ParseCXXClassMemberDeclaration()
2149 ExprResult AsmLabel(ParseSimpleAsm(&Loc)); in ParseCXXClassMemberDeclaration()
2343 ExprResult Parser::ParseCXXMemberInitializer(Decl *D, bool IsFunction, in ParseCXXMemberInitializer()
2367 return ExprResult(); in ParseCXXMemberInitializer()
2375 return ExprResult(); in ParseCXXMemberInitializer()
[all …]
DParseDecl.cpp270 ExprResult ArgExpr(ParseAssignmentExpression()); in ParseGNUAttributeArgs()
337 ExprResult ArgExpr(ParseConstantExpression()); in ParseMicrosoftDeclSpecWithSingleArg()
704 ExprResult MessageExpr; in ParseAvailabilityAttribute()
1057 ExprResult ArgExpr(ParseAssignmentExpression()); in ParseThreadSafetyAttribute()
1618 ExprResult AsmLabel(ParseSimpleAsm(&Loc)); in ParseAsmAttributesAfterDeclarator()
1726 ExprResult Init(ParseInitializer()); in ParseDeclarationAfterDeclaratorAndAttributes()
1773 ExprResult Initializer = Actions.ActOnParenListExpr(T.getOpenLocation(), in ParseDeclarationAfterDeclaratorAndAttributes()
1789 ExprResult Init(ParseBraceInitializer()); in ParseDeclarationAfterDeclaratorAndAttributes()
2104 ExprResult Parser::ParseAlignArgument(SourceLocation Start, in ParseAlignArgument()
2106 ExprResult ER; in ParseAlignArgument()
[all …]
DParseCXXInlineMethods.cpp38 ExprResult& Init) { in ParseCXXInlineMethodDef()
340 ExprResult DefArgResult; in ParseLexedMethodDeclaration()
517 ExprResult Init = ParseCXXMemberInitializer(MI.Field, /*IsFunction=*/false, in ParseLexedMemberInitializer()

12