Home
last modified time | relevance | path

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

12

/external/clang/include/clang/Parse/
DParser.h573 static ExprResult getExprAnnotation(Token &Tok) { in getExprAnnotation()
574 return ExprResult::getFromOpaquePointer(Tok.getAnnotationValue()); in getExprAnnotation()
579 static void setExprAnnotation(Token &Tok, ExprResult ER) { in setExprAnnotation()
1269 ExprResult ParseSimpleAsm(SourceLocation *EndLoc = nullptr);
1270 ExprResult ParseAsmStringLiteral();
1408 ExprResult ParseExpression(TypeCastState isTypeCast = NotTypeCast);
1409 ExprResult ParseConstantExpression(TypeCastState isTypeCast = NotTypeCast);
1410 ExprResult ParseConstraintExpression();
1412 ExprResult ParseAssignmentExpression(TypeCastState isTypeCast = NotTypeCast);
1414 ExprResult ParseMSAsmIdentifier(llvm::SmallVectorImpl<Token> &LineToks,
[all …]
/external/clang/include/clang/Sema/
DSema.h1561 ExprResult Expr;
1569 NameClassification(ExprResult Expr) : Kind(NC_Expression), Expr(Expr) {} in NameClassification()
1613 ExprResult getExpression() const { in getExpression()
2288 void maybeExtendBlockObject(ExprResult &E);
2289 CastKind PrepareCastToObjCObjectPointer(ExprResult &E);
2309 ExprResult PerformMoveOrCopyInitialization(const InitializedEntity &Entity,
2316 ExprResult Init);
2317 ExprResult PerformCopyInitialization(const InitializedEntity &Entity,
2319 ExprResult Init,
2322 ExprResult PerformObjectArgumentInitialization(Expr *From,
[all …]
DOwnership.h253 typedef ActionResult<Expr*> ExprResult;
268 inline ExprResult ExprError() { return ExprResult(true); }
271 inline ExprResult ExprError(const DiagnosticBuilder&) { return ExprError(); }
274 inline ExprResult ExprEmpty() { return ExprResult(false); }
277 inline Expr *AssertSuccess(ExprResult R) {
/external/clang/lib/Sema/
DTreeTransform.h133 static inline ExprResult Owned(Expr *E) { return E; } in Owned()
360 ExprResult TransformExpr(Expr *E);
369 ExprResult TransformInitializer(Expr *Init, bool NotCopyInit);
635 ExprResult TransformCXXNamedCastExpr(CXXNamedCastExpr *E);
642 ExprResult TransformAddressOfOperand(Expr *E);
644 ExprResult TransformDependentScopeDeclRefExpr(DependentScopeDeclRefExpr *E,
648 ExprResult TransformParenDependentScopeDeclRefExpr(
661 ExprResult Transform##Node(Node *E);
1314 ExprResult RebuildCoawaitExpr(SourceLocation CoawaitLoc, Expr *Result) { in RebuildCoawaitExpr()
1322 ExprResult RebuildCoyieldExpr(SourceLocation CoyieldLoc, Expr *Result) { in RebuildCoyieldExpr()
[all …]
DSemaPseudoObject.cpp212 ExprResult buildRValueOperation(Expr *op);
213 ExprResult buildAssignmentOperation(Scope *Sc,
217 ExprResult buildIncDecOperation(Scope *Sc, SourceLocation opLoc,
221 virtual ExprResult complete(Expr *syntacticForm);
245 virtual ExprResult buildGet() = 0;
246 virtual ExprResult buildSet(Expr *, SourceLocation,
282 ExprResult buildRValueOperation(Expr *op);
283 ExprResult buildAssignmentOperation(Scope *Sc,
287 ExprResult buildIncDecOperation(Scope *Sc, SourceLocation opLoc,
291 bool tryBuildGetOfReference(Expr *op, ExprResult &result);
[all …]
DSemaCoroutine.cpp162 static ExprResult buildOperatorCoawaitCall(Sema &SemaRef, Scope *S, in buildOperatorCoawaitCall()
175 static ExprResult buildMemberCall(Sema &S, Expr *Base, SourceLocation Loc, in buildMemberCall()
182 ExprResult Result = S.BuildMemberReferenceExpr( in buildMemberCall()
205 ExprResult Result = buildMemberCall(S, Operand, Loc, Funcs[I], None); in buildCoawaitCalls()
215 ExprResult Sema::ActOnCoawaitExpr(Scope *S, SourceLocation Loc, Expr *E) { in ActOnCoawaitExpr()
217 ExprResult R = CheckPlaceholderExpr(E); in ActOnCoawaitExpr()
222 ExprResult Awaitable = buildOperatorCoawaitCall(*this, S, Loc, E); in ActOnCoawaitExpr()
227 ExprResult Sema::BuildCoawaitExpr(SourceLocation Loc, Expr *E) { in BuildCoawaitExpr()
233 ExprResult R = CheckPlaceholderExpr(E); in BuildCoawaitExpr()
260 static ExprResult buildPromiseCall(Sema &S, FunctionScopeInfo *Coroutine, in buildPromiseCall()
[all …]
DSemaExpr.cpp509 ExprResult Sema::DefaultFunctionArrayConversion(Expr *E, bool Diagnose) { in DefaultFunctionArrayConversion()
512 ExprResult result = CheckPlaceholderExpr(E); in DefaultFunctionArrayConversion()
630 ExprResult Sema::DefaultLvalueConversion(Expr *E) { in DefaultLvalueConversion()
633 ExprResult result = CheckPlaceholderExpr(E); in DefaultLvalueConversion()
712 ExprResult Res = ImplicitCastExpr::Create(Context, T, CK_LValueToRValue, E, in DefaultLvalueConversion()
727 ExprResult Sema::DefaultFunctionArrayLvalueConversion(Expr *E, bool Diagnose) { in DefaultFunctionArrayLvalueConversion()
728 ExprResult Res = DefaultFunctionArrayConversion(E, Diagnose); in DefaultFunctionArrayLvalueConversion()
739 ExprResult Sema::CallExprUnaryConversions(Expr *E) { in CallExprUnaryConversions()
741 ExprResult Res = E; in CallExprUnaryConversions()
761 ExprResult Sema::UsualUnaryConversions(Expr *E) { in UsualUnaryConversions()
[all …]
DSemaExprCXX.cpp372 ExprResult Sema::BuildCXXTypeId(QualType TypeInfoType, in BuildCXXTypeId()
397 ExprResult Sema::BuildCXXTypeId(QualType TypeInfoType, in BuildCXXTypeId()
404 ExprResult result = CheckPlaceholderExpr(E); in BuildCXXTypeId()
425 ExprResult Result = TransformToPotentiallyEvaluated(E); in BuildCXXTypeId()
465 ExprResult
549 ExprResult Sema::BuildCXXUuidof(QualType TypeInfoType, in BuildCXXUuidof()
569 ExprResult Sema::BuildCXXUuidof(QualType TypeInfoType, in BuildCXXUuidof()
593 ExprResult
627 ExprResult
636 ExprResult
[all …]
DSemaExprMember.cpp234 ExprResult
456 ExprResult
710 static ExprResult LookupMemberExpr(Sema &S, LookupResult &R,
711 ExprResult &BaseExpr, bool &IsArrow,
715 ExprResult
748 ExprResult BaseResult = Base; in BuildMemberReferenceExpr()
749 ExprResult Result = LookupMemberExpr( in BuildMemberReferenceExpr()
774 static ExprResult
780 ExprResult
807 ExprResult result in BuildAnonymousStructUnionMemberReference()
[all …]
DSemaStmtAsm.cpp181 ExprResult ER = CheckPlaceholderExpr(Exprs[i]); in ActOnGCCAsmStmt()
262 ExprResult ER = CheckPlaceholderExpr(Exprs[i]); in ActOnGCCAsmStmt()
300 ExprResult Result = DefaultFunctionArrayLvalueConversion(Exprs[i]); in ActOnGCCAsmStmt()
561 ExprResult Sema::LookupInlineAsmIdentifier(CXXScopeSpec &SS, in LookupInlineAsmIdentifier()
572 ExprResult Result = ActOnIdExpression(getCurScope(), SS, TemplateKWLoc, Id, in LookupInlineAsmIdentifier()
672 ExprResult
692 return ExprResult(); in LookupInlineAsmVarDeclField()
698 return ExprResult(); in LookupInlineAsmVarDeclField()
705 return ExprResult(); in LookupInlineAsmVarDeclField()
708 ExprResult Result = BuildMemberReferenceExpr( in LookupInlineAsmVarDeclField()
DSemaStmt.cpp44 StmtResult Sema::ActOnExprStmt(ExprResult FE) { in ActOnExprStmt()
386 ExprResult LHS = in ActOnCaseStmt()
427 : ExprResult(); in ActOnCaseStmt()
609 ExprResult Sema::CheckSwitchCondition(SourceLocation SwitchLoc, Expr *Cond) { in CheckSwitchCondition()
657 ExprResult CondResult = in CheckSwitchCondition()
843 ExprResult ConvLo = in ActOnFinishSwitchStmt()
960 ExprResult ConvHi = in ActOnFinishSwitchStmt()
1263 ExprResult CondResult = CheckBooleanCondition(DoLoc, Cond); in ActOnDoStmt()
1685 ExprResult result = CheckPlaceholderExpr(E); in ActOnForEachLValueExpr()
1689 ExprResult FullExpr = ActOnFinishFullExpr(E); in ActOnForEachLValueExpr()
[all …]
DSemaExprObjC.cpp34 ExprResult Sema::ParseObjCStringLiteral(SourceLocation *AtLocs, in ParseObjCStringLiteral()
80 ExprResult Sema::BuildObjCStringLiteral(SourceLocation AtLoc, StringLiteral *S){ in BuildObjCStringLiteral()
314 ExprResult Sema::BuildObjCNumericLiteral(SourceLocation AtLoc, Expr *Number) { in BuildObjCNumericLiteral()
352 ExprResult ConvertedNumber = PerformCopyInitialization(Entity, in BuildObjCNumericLiteral()
365 ExprResult Sema::ActOnObjCBoolLiteral(SourceLocation AtLoc, in ActOnObjCBoolLiteral()
368 ExprResult Inner; in ActOnObjCBoolLiteral()
384 static ExprResult CheckObjCCollectionLiteralElement(Sema &S, Expr *Element, in CheckObjCCollectionLiteralElement()
391 ExprResult Result = S.CheckPlaceholderExpr(Element); in CheckObjCCollectionLiteralElement()
499 ExprResult Sema::BuildObjCBoxedExpr(SourceRange SR, Expr *ValueExpr) { in BuildObjCBoxedExpr()
508 ExprResult RValue = DefaultFunctionArrayLvalueConversion(ValueExpr); in BuildObjCBoxedExpr()
[all …]
DSemaCast.cpp51 CastOperation(Sema &S, QualType destType, ExprResult src) in CastOperation()
66 ExprResult SrcExpr;
88 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,
202 static TryCastResult TryConstCast(Sema &Self, ExprResult &SrcExpr,
205 static TryCastResult TryReinterpretCast(Sema &Self, ExprResult &SrcExpr,
213 ExprResult
236 ExprResult
[all …]
DSemaTemplateInstantiate.cpp772 ExprResult TransformPredefinedExpr(PredefinedExpr *E);
773 ExprResult TransformDeclRefExpr(DeclRefExpr *E);
774 ExprResult TransformCXXDefaultArgExpr(CXXDefaultArgExpr *E);
776 ExprResult TransformTemplateParmRefExpr(DeclRefExpr *E,
778 ExprResult TransformSubstNonTypeTemplateParmPackExpr(
782 ExprResult RebuildParmVarDeclRefExpr(ParmVarDecl *PD, SourceLocation Loc);
785 ExprResult TransformFunctionParmPackRefExpr(DeclRefExpr *E,
791 ExprResult TransformFunctionParmPackExpr(FunctionParmPackExpr *E);
822 ExprResult TransformLambdaExpr(LambdaExpr *E) { in TransformLambdaExpr()
837 ExprResult transformNonTypeTemplateParmRef(NonTypeTemplateParmDecl *parm,
[all …]
DSemaOpenMP.cpp1151 ExprResult Sema::ActOnOpenMPIdExpression(Scope *CurScope, in ActOnOpenMPIdExpression()
1735 ExprResult Res = in buildCaptureDecl()
1764 static ExprResult buildCapture(Sema &S, Expr *CaptureExpr, DeclRefExpr *&Ref) { in buildCapture()
1772 ExprResult Res = Ref; in buildCapture()
3658 ExprResult SL; in ActOnOpenMPDeclareSimdDirective()
3747 ExprResult Align; in ActOnOpenMPDeclareSimdDirective()
4060 ExprResult Val = in SetStep()
4372 static ExprResult
4376 return ExprResult(Capture); in tryBuildCapture()
4385 ExprResult Res = buildCapture(SemaRef, Capture, Ref); in tryBuildCapture()
[all …]
DSemaTemplateVariadic.cpp430 ExprResult Result = ActOnPackExpansion(Arg.getAsExpr(), EllipsisLoc); in ActOnPackExpansion()
501 ExprResult Sema::ActOnPackExpansion(Expr *Pattern, SourceLocation EllipsisLoc) { in ActOnPackExpansion()
505 ExprResult Sema::CheckPackExpansion(Expr *Pattern, SourceLocation EllipsisLoc, in CheckPackExpansion()
830 ExprResult Sema::ActOnSizeofParameterPackExpr(Scope *S, in ActOnSizeofParameterPackExpr()
952 ExprResult Sema::ActOnCXXFoldExpr(SourceLocation LParenLoc, Expr *LHS, in ActOnCXXFoldExpr()
990 ExprResult Sema::BuildCXXFoldExpr(SourceLocation LParenLoc, Expr *LHS, in BuildCXXFoldExpr()
998 ExprResult Sema::BuildEmptyCXXFoldExpr(SourceLocation EllipsisLoc, in BuildEmptyCXXFoldExpr()
DSemaOverload.cpp47 static ExprResult
868 ExprResult result = S.CheckPlaceholderExpr(E); in checkPlaceholderForOverload()
1354 ExprResult
1361 ExprResult
1785 ExprResult ER = ExprResult{From}; in IsStandardConversion()
4972 ExprResult
5019 ExprResult FromRes = in PerformObjectArgumentInitialization()
5047 ExprResult Sema::PerformContextuallyConvertToBool(Expr *From) { in PerformContextuallyConvertToBool()
5129 static ExprResult CheckConvertedConstantExpression(Sema &S, Expr *From, in CheckConvertedConstantExpression()
5185 ExprResult Result = in CheckConvertedConstantExpression()
[all …]
/external/clang/lib/Parse/
DParseExpr.cpp120 ExprResult Parser::ParseExpression(TypeCastState isTypeCast) { in ParseExpression()
121 ExprResult LHS(ParseAssignmentExpression(isTypeCast)); in ParseExpression()
130 ExprResult
132 ExprResult LHS(ParseObjCAtExpression(AtLoc)); in ParseExpressionWithLeadingAt()
139 ExprResult
141 ExprResult LHS(true); in ParseExpressionWithLeadingExtension()
157 ExprResult Parser::ParseAssignmentExpression(TypeCastState isTypeCast) { in ParseAssignmentExpression()
169 ExprResult LHS = ParseCastExpression(/*isUnaryExpression=*/false, in ParseAssignmentExpression()
184 ExprResult
189 ExprResult R in ParseAssignmentExprWithObjCMessageExprStart()
[all …]
DParseInit.cpp131 ExprResult Parser::ParseInitializerWithPotentialDesignator() { in ParseInitializerWithPotentialDesignator()
207 ExprResult Idx; in ParseInitializerWithPotentialDesignator()
245 Idx = ExprResult(static_cast<Expr*>(TypeOrExpr)); in ParseInitializerWithPotentialDesignator()
331 ExprResult RHS(ParseConstantExpression()); in ParseInitializerWithPotentialDesignator()
389 ExprResult Parser::ParseBraceInitializer() { in ParseBraceInitializer()
426 ExprResult SubElt; in ParseBraceInitializer()
511 ExprResult SubElt; in ParseMicrosoftIfExistsBraceInitializer()
DParseExprCXX.cpp592 ExprResult Parser::tryParseCXXIdExpression(CXXScopeSpec &SS, bool isAddressOfOperand, in tryParseCXXIdExpression()
656 ExprResult Parser::ParseCXXIdExpression(bool isAddressOfOperand) { in ParseCXXIdExpression()
665 ExprResult Result = in ParseCXXIdExpression()
717 ExprResult Parser::ParseLambdaExpression() { in ParseLambdaExpression()
737 ExprResult Parser::TryParseLambdaExpression() { in TryParseLambdaExpression()
851 ExprResult Init; in ParseLambdaIntroducer()
1110 ExprResult Parser::ParseLambdaExpressionAfterIntroducer( in ParseLambdaExpressionAfterIntroducer()
1179 ExprResult NoexceptExpr; in ParseLambdaExpressionAfterIntroducer()
1335 ExprResult Parser::ParseCXXCasts() { in ParseCXXCasts()
1380 ExprResult Result = ParseExpression(); in ParseCXXCasts()
[all …]
DParseObjc.cpp2456 ExprResult Res; in ParseObjCThrowStmt()
2483 ExprResult operand(ParseExpression()); in ParseObjCSynchronizedStmt()
2769 ExprResult Res(ParseExpressionWithLeadingAt(AtLoc)); in ParseObjCAtStatement()
2783 ExprResult Parser::ParseObjCAtExpression(SourceLocation AtLoc) { in ParseObjCAtExpression()
2807 ExprResult Lit(Actions.ActOnNumericConstant(Tok)); in ParseObjCAtExpression()
2917 ExprResult Receiver = Actions.CorrectDelayedTyposInExpr(ParseExpression()); in ParseObjCXXMessageReceiver()
2946 ExprResult Receiver = ParseCXXTypeConstructExpression(DS); in ParseObjCXXMessageReceiver()
3021 ExprResult Parser::ParseObjCMessageExpression() { in ParseObjCMessageExpression()
3107 ExprResult Res = Actions.CorrectDelayedTyposInExpr(ParseExpression()); in ParseObjCMessageExpression()
3155 ExprResult
[all …]
DParseStmt.cpp402 ExprResult Expr(ParseExpression()); in ParseExprStatement()
493 ExprResult FilterExpr; in ParseSEHExceptBlock()
632 StmtResult Parser::ParseCaseStatement(bool MissingCase, ExprResult Expr) { in ParseCaseStatement()
676 ExprResult LHS; in ParseCaseStatement()
700 ExprResult RHS; in ParseCaseStatement()
1013 ExprResult Res(ParseExpressionWithLeadingExtension(ExtLoc)); in ParseCompoundStatementBody()
1066 ExprResult CondExpr = ParseExpression(); in ParseParenExprOrCondition()
1463 ExprResult Cond = ParseExpression(); in ParseDoStatement()
1556 ExprResult Value; in ParseForStatement()
1561 ExprResult Collection; in ParseForStatement()
[all …]
DParseOpenMP.cpp53 ExprResult Res = in operator ()()
294 ExprResult CombinerResult = in ParseOpenMPDeclareReductionDirective()
306 ExprResult InitializerResult; in ParseOpenMPDeclareReductionDirective()
421 Parser &P, OMPDeclareSimdDeclAttr::BranchStateTy &BS, ExprResult &SimdLen, in parseDeclareSimdClauses()
504 ExprResult Simdlen; in ParseOMPDeclareSimdClauses()
1212 ExprResult Parser::ParseOpenMPParensExpr(StringRef ClauseName, in ParseOpenMPParensExpr()
1219 ExprResult LHS(ParseCastExpression( in ParseOpenMPParensExpr()
1221 ExprResult Val(ParseRHSOfBinaryExpression(LHS, prec::Conditional)); in ParseOpenMPParensExpr()
1267 ExprResult Val = ParseOpenMPParensExpr(getOpenMPClauseName(Kind), RLoc); in ParseOpenMPSingleExprClause()
1362 ExprResult Val; in ParseOpenMPSingleExprWithArgClause()
[all …]
DParseStmtAsm.cpp66 ExprResult Result = TheParser.ParseMSAsmIdentifier( in LookupInlineAsmIdentifier()
184 ExprResult Parser::ParseMSAsmIdentifier(llvm::SmallVectorImpl<Token> &LineToks, in ParseMSAsmIdentifier()
218 ExprResult Result; in ParseMSAsmIdentifier()
709 ExprResult AsmString(ParseAsmStringLiteral()); in ParseAsmStatement()
779 ExprResult Clobber(ParseAsmStringLiteral()); in ParseAsmStatement()
838 ExprResult Constraint(ParseAsmStringLiteral()); in ParseAsmOperandsOpt()
854 ExprResult Res = Actions.CorrectDelayedTyposInExpr(ParseExpression()); in ParseAsmOperandsOpt()
/external/google-fruit/include/fruit/impl/meta/
Deval.h122 template <typename ExprResult, typename ErrorTag, typename Handler>
124 using type = ExprResult;
133 template <typename ExprResult, typename Handler>
135 using type = ExprResult;

12