Home
last modified time | relevance | path

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

12

/external/clang/include/clang/Parse/
DParser.h260 typedef clang::ExprResult ExprResult; typedef
270 ExprResult ExprError() { return ExprResult(true); } in ExprError()
273 ExprResult ExprError(const DiagnosticBuilder &) { return ExprError(); } in ExprError()
276 ExprResult ExprEmpty() { return ExprResult(false); } in ExprEmpty()
559 static ExprResult getExprAnnotation(Token &Tok) { in getExprAnnotation()
560 return ExprResult::getFromOpaquePointer(Tok.getAnnotationValue()); in getExprAnnotation()
565 static void setExprAnnotation(Token &Tok, ExprResult ER) { in setExprAnnotation()
1180 ExprResult& Init);
1235 ExprResult ParseSimpleAsm(SourceLocation *EndLoc = nullptr);
1236 ExprResult ParseAsmStringLiteral();
[all …]
/external/clang/include/clang/Sema/
DSema.h1441 ExprResult Expr;
1449 NameClassification(ExprResult Expr) : Kind(NC_Expression), Expr(Expr) {} in NameClassification()
1493 ExprResult getExpression() const { in getExpression()
2082 CastKind PrepareCastToObjCObjectPointer(ExprResult &E);
2101 ExprResult PerformMoveOrCopyInitialization(const InitializedEntity &Entity,
2108 ExprResult Init);
2109 ExprResult PerformCopyInitialization(const InitializedEntity &Entity,
2111 ExprResult Init,
2114 ExprResult PerformObjectArgumentInitialization(Expr *From,
2119 ExprResult PerformContextuallyConvertToBool(Expr *From);
[all …]
DOwnership.h252 typedef ActionResult<Expr*> ExprResult;
267 inline ExprResult ExprError() { return ExprResult(true); }
270 inline ExprResult ExprError(const DiagnosticBuilder&) { return ExprError(); }
273 inline ExprResult ExprEmpty() { return ExprResult(false); }
276 inline Expr *AssertSuccess(ExprResult R) {
/external/clang/lib/Sema/
DTreeTransform.h132 static inline ExprResult Owned(Expr *E) { return E; } in Owned()
338 ExprResult TransformExpr(Expr *E);
347 ExprResult TransformInitializer(Expr *Init, bool CXXDirectInit);
594 ExprResult TransformCXXNamedCastExpr(CXXNamedCastExpr *E);
596 typedef std::pair<ExprResult, QualType> InitCaptureInfoTy;
598 ExprResult TransformLambdaScope(LambdaExpr *E, CXXMethodDecl *CallOperator,
606 ExprResult TransformAddressOfOperand(Expr *E);
608 ExprResult TransformDependentScopeDeclRefExpr(DependentScopeDeclRefExpr *E,
612 ExprResult TransformParenDependentScopeDeclRefExpr(
625 ExprResult Transform##Node(Node *E);
[all …]
DSemaPseudoObject.cpp219 ExprResult buildRValueOperation(Expr *op);
220 ExprResult buildAssignmentOperation(Scope *Sc,
224 ExprResult buildIncDecOperation(Scope *Sc, SourceLocation opLoc,
228 virtual ExprResult complete(Expr *syntacticForm);
252 virtual ExprResult buildGet() = 0;
253 virtual ExprResult buildSet(Expr *, SourceLocation,
275 ExprResult buildRValueOperation(Expr *op);
276 ExprResult buildAssignmentOperation(Scope *Sc,
280 ExprResult buildIncDecOperation(Scope *Sc, SourceLocation opLoc,
284 bool tryBuildGetOfReference(Expr *op, ExprResult &result);
[all …]
DSemaExpr.cpp433 ExprResult Sema::DefaultFunctionArrayConversion(Expr *E) { in DefaultFunctionArrayConversion()
436 ExprResult result = CheckPlaceholderExpr(E); in DefaultFunctionArrayConversion()
547 ExprResult Sema::DefaultLvalueConversion(Expr *E) { in DefaultLvalueConversion()
550 ExprResult result = CheckPlaceholderExpr(E); in DefaultLvalueConversion()
624 ExprResult Res = ImplicitCastExpr::Create(Context, T, CK_LValueToRValue, E, in DefaultLvalueConversion()
639 ExprResult Sema::DefaultFunctionArrayLvalueConversion(Expr *E) { in DefaultFunctionArrayLvalueConversion()
640 ExprResult Res = DefaultFunctionArrayConversion(E); in DefaultFunctionArrayLvalueConversion()
651 ExprResult Sema::CallExprUnaryConversions(Expr *E) { in CallExprUnaryConversions()
653 ExprResult Res = E; in CallExprUnaryConversions()
673 ExprResult Sema::UsualUnaryConversions(Expr *E) { in UsualUnaryConversions()
[all …]
DSemaExprCXX.cpp366 ExprResult Sema::BuildCXXTypeId(QualType TypeInfoType, in BuildCXXTypeId()
388 ExprResult Sema::BuildCXXTypeId(QualType TypeInfoType, in BuildCXXTypeId()
394 ExprResult result = CheckPlaceholderExpr(E); in BuildCXXTypeId()
415 ExprResult Result = TransformToPotentiallyEvaluated(E); in BuildCXXTypeId()
442 ExprResult
489 ExprResult Sema::BuildCXXUuidof(QualType TypeInfoType, in BuildCXXUuidof()
509 ExprResult Sema::BuildCXXUuidof(QualType TypeInfoType, in BuildCXXUuidof()
529 ExprResult
563 ExprResult
572 ExprResult
[all …]
DSemaExprMember.cpp234 ExprResult
441 ExprResult
673 static ExprResult LookupMemberExpr(Sema &S, LookupResult &R,
674 ExprResult &BaseExpr, bool &IsArrow,
678 ExprResult
707 ExprResult BaseResult = Base; in BuildMemberReferenceExpr()
708 ExprResult Result = LookupMemberExpr( in BuildMemberReferenceExpr()
733 static ExprResult
739 ExprResult
766 ExprResult result in BuildAnonymousStructUnionMemberReference()
[all …]
DSemaTemplateInstantiate.cpp770 ExprResult TransformPredefinedExpr(PredefinedExpr *E);
771 ExprResult TransformDeclRefExpr(DeclRefExpr *E);
772 ExprResult TransformCXXDefaultArgExpr(CXXDefaultArgExpr *E);
774 ExprResult TransformTemplateParmRefExpr(DeclRefExpr *E,
776 ExprResult TransformSubstNonTypeTemplateParmPackExpr(
780 ExprResult RebuildParmVarDeclRefExpr(ParmVarDecl *PD, SourceLocation Loc);
783 ExprResult TransformFunctionParmPackRefExpr(DeclRefExpr *E,
789 ExprResult TransformFunctionParmPackExpr(FunctionParmPackExpr *E);
814 ExprResult TransformCallExpr(CallExpr *CE) { in TransformCallExpr()
816 ExprResult Result = in TransformCallExpr()
[all …]
DSemaStmt.cpp38 StmtResult Sema::ActOnExprStmt(ExprResult FE) { in ActOnExprStmt()
452 ExprResult CondResult(CondVal.release()); in ActOnIfStmt()
581 ExprResult CondResult; in ActOnStartOfSwitchStmt()
795 ExprResult ConvLo = in ActOnFinishSwitchStmt()
915 ExprResult ConvHi = in ActOnFinishSwitchStmt()
1207 ExprResult CondResult(Cond.release()); in ActOnWhileStmt()
1237 ExprResult CondResult = CheckBooleanCondition(Cond, DoLoc); in ActOnDoStmt()
1613 ExprResult SecondResult(second.release()); in ActOnForStmt()
1642 ExprResult result = CheckPlaceholderExpr(E); in ActOnForEachLValueExpr()
1646 ExprResult FullExpr = ActOnFinishFullExpr(E); in ActOnForEachLValueExpr()
[all …]
DSemaExprObjC.cpp34 ExprResult Sema::ParseObjCStringLiteral(SourceLocation *AtLocs, in ParseObjCStringLiteral()
83 ExprResult Sema::BuildObjCStringLiteral(SourceLocation AtLoc, StringLiteral *S){ in BuildObjCStringLiteral()
260 ExprResult Sema::BuildObjCNumericLiteral(SourceLocation AtLoc, Expr *Number) { in BuildObjCNumericLiteral()
297 ExprResult ConvertedNumber = PerformCopyInitialization(Entity, in BuildObjCNumericLiteral()
310 ExprResult Sema::ActOnObjCBoolLiteral(SourceLocation AtLoc, in ActOnObjCBoolLiteral()
313 ExprResult Inner; in ActOnObjCBoolLiteral()
329 static ExprResult CheckObjCCollectionLiteralElement(Sema &S, Expr *Element, in CheckObjCCollectionLiteralElement()
336 ExprResult Result = S.CheckPlaceholderExpr(Element); in CheckObjCCollectionLiteralElement()
444 ExprResult Sema::BuildObjCBoxedExpr(SourceRange SR, Expr *ValueExpr) { in BuildObjCBoxedExpr()
453 ExprResult RValue = DefaultFunctionArrayLvalueConversion(ValueExpr); in BuildObjCBoxedExpr()
[all …]
DSemaCast.cpp50 CastOperation(Sema &S, QualType destType, ExprResult src) in CastOperation()
65 ExprResult SrcExpr;
87 ExprResult complete(CastExpr *castExpr) { in complete()
183 static TryCastResult TryStaticMemberPointerUpcast(Sema &Self, ExprResult &SrcExpr,
191 static TryCastResult TryStaticImplicitCast(Sema &Self, ExprResult &SrcExpr,
197 static TryCastResult TryStaticCast(Sema &Self, ExprResult &SrcExpr,
204 static TryCastResult TryConstCast(Sema &Self, ExprResult &SrcExpr,
207 static TryCastResult TryReinterpretCast(Sema &Self, ExprResult &SrcExpr,
215 ExprResult
238 ExprResult
[all …]
DSemaOverload.cpp42 static ExprResult
64 ExprResult E = DRE; in CreateFunctionRefExpr()
850 ExprResult result = S.CheckPlaceholderExpr(E); in checkPlaceholderForOverload()
1294 ExprResult
1301 ExprResult
4830 ExprResult
4877 ExprResult FromRes = in PerformObjectArgumentInitialization()
4905 ExprResult Sema::PerformContextuallyConvertToBool(Expr *From) { in PerformContextuallyConvertToBool()
4976 ExprResult Sema::CheckConvertedConstantExpression(Expr *From, QualType T, in CheckConvertedConstantExpression()
5029 ExprResult Result = PerformImplicitConversion(From, T, ICS, AA_Converting); in CheckConvertedConstantExpression()
[all …]
DSemaStmtAsm.cpp166 ExprResult Result = DefaultFunctionArrayLvalueConversion(Exprs[i]); in ActOnGCCAsmStmt()
371 ExprResult Sema::LookupInlineAsmIdentifier(CXXScopeSpec &SS, in LookupInlineAsmIdentifier()
382 ExprResult Result = ActOnIdExpression(getCurScope(), SS, TemplateKWLoc, Id, in LookupInlineAsmIdentifier()
DSemaInit.cpp316 static ExprResult PerformEmptyInit(Sema &SemaRef,
342 ExprResult InitListChecker::PerformEmptyInit(Sema &SemaRef, in PerformEmptyInit()
443 return VerifyOnly ? ExprResult(static_cast<Expr *>(nullptr)) in PerformEmptyInit()
493 ExprResult MemberInit = PerformEmptyInit(SemaRef, Loc, MemberEntity, in FillInEmptyInitForField()
594 ExprResult ElementInit = PerformEmptyInit(SemaRef, ILE->getLocEnd(), in FillInEmptyInitializations()
957 ExprResult Result = in CheckSubElementType()
979 ExprResult ExprRes = expr; in CheckSubElementType()
1109 ExprResult Result = in CheckScalarType()
1171 ExprResult Result = in CheckReferenceType()
1219 ExprResult Result = in CheckVectorType()
[all …]
DSemaTemplateVariadic.cpp421 ExprResult Result = ActOnPackExpansion(Arg.getAsExpr(), EllipsisLoc); in ActOnPackExpansion()
492 ExprResult Sema::ActOnPackExpansion(Expr *Pattern, SourceLocation EllipsisLoc) { in ActOnPackExpansion()
496 ExprResult Sema::CheckPackExpansion(Expr *Pattern, SourceLocation EllipsisLoc, in CheckPackExpansion()
792 ExprResult Sema::ActOnSizeofParameterPackExpr(Scope *S, in ActOnSizeofParameterPackExpr()
DSemaOpenMP.cpp559 ExprResult Sema::ActOnOpenMPIdExpression(Scope *CurScope, in ActOnOpenMPIdExpression()
680 ExprResult DE = BuildDeclRefExpr(VD, ExprType, VK_LValue, Id.getLoc()); in ActOnOpenMPIdExpression()
1334 ExprResult Val = in SetStep()
1947 ExprResult Val = ActOnBooleanCondition(DSAStack->getCurScope(), in ActOnOpenMPIfClause()
1958 ExprResult Sema::PerformOpenMPImplicitIntegerConversion(SourceLocation Loc, in PerformOpenMPImplicitIntegerConversion()
2011 ExprResult Val = in ActOnOpenMPNumThreadsClause()
2033 ExprResult Sema::VerifyPositiveIntegerConstantInClause(Expr *E, in VerifyPositiveIntegerConstantInClause()
2041 ExprResult ICE = VerifyIntegerConstantExpression(E, &Result); in VerifyPositiveIntegerConstantInClause()
2058 ExprResult Safelen = VerifyPositiveIntegerConstantInClause(Len, OMPC_safelen); in ActOnOpenMPSafelenClause()
2074 ExprResult NumForLoopsResult = in ActOnOpenMPCollapseClause()
[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()
167 ExprResult LHS = ParseCastExpression(/*isUnaryExpression=*/false, in ParseAssignmentExpression()
182 ExprResult
187 ExprResult R in ParseAssignmentExprWithObjCMessageExprStart()
[all …]
DParseInit.cpp131 ExprResult Parser::ParseInitializerWithPotentialDesignator() { in ParseInitializerWithPotentialDesignator()
207 ExprResult Idx; in ParseInitializerWithPotentialDesignator()
247 Idx = ExprResult(static_cast<Expr*>(TypeOrExpr)); in ParseInitializerWithPotentialDesignator()
323 ExprResult RHS(ParseConstantExpression()); in ParseInitializerWithPotentialDesignator()
381 ExprResult Parser::ParseBraceInitializer() { in ParseBraceInitializer()
418 ExprResult SubElt; in ParseBraceInitializer()
501 ExprResult SubElt; in ParseMicrosoftIfExistsBraceInitializer()
DParseStmt.cpp384 ExprResult Expr(ParseExpression()); in ParseExprStatement()
476 ExprResult FilterExpr(ParseExpression()); in ParseSEHExceptBlock()
598 StmtResult Parser::ParseCaseStatement(bool MissingCase, ExprResult Expr) { in ParseCaseStatement()
642 ExprResult LHS; in ParseCaseStatement()
661 ExprResult RHS; in ParseCaseStatement()
970 ExprResult Res(ParseExpressionWithLeadingExtension(ExtLoc)); in ParseCompoundStatementBody()
1012 bool Parser::ParseParenExprOrCondition(ExprResult &ExprResult, in ParseParenExprOrCondition() argument
1020 ParseCXXCondition(ExprResult, DeclResult, Loc, ConvertToBoolean); in ParseParenExprOrCondition()
1022 ExprResult = ParseExpression(); in ParseParenExprOrCondition()
1026 if (!ExprResult.isInvalid() && ConvertToBoolean) in ParseParenExprOrCondition()
[all …]
DParseExprCXX.cpp601 ExprResult Parser::ParseCXXIdExpression(bool isAddressOfOperand) { in ParseCXXIdExpression()
668 ExprResult Parser::ParseLambdaExpression() { in ParseLambdaExpression()
688 ExprResult Parser::TryParseLambdaExpression() { in TryParseLambdaExpression()
798 ExprResult Init; in ParseLambdaIntroducer()
991 ExprResult Parser::ParseLambdaExpressionAfterIntroducer( in ParseLambdaExpressionAfterIntroducer()
1052 ExprResult NoexceptExpr; in ParseLambdaExpressionAfterIntroducer()
1202 ExprResult Parser::ParseCXXCasts() { in ParseCXXCasts()
1247 ExprResult Result = ParseExpression(); in ParseCXXCasts()
1268 ExprResult Parser::ParseCXXTypeid() { in ParseCXXTypeid()
1280 ExprResult Result; in ParseCXXTypeid()
[all …]
DParseObjc.cpp1775 ExprResult Res; in ParseObjCThrowStmt()
1802 ExprResult operand(ParseExpression()); in ParseObjCSynchronizedStmt()
2075 ExprResult Res(ParseExpressionWithLeadingAt(AtLoc)); in ParseObjCAtStatement()
2089 ExprResult Parser::ParseObjCAtExpression(SourceLocation AtLoc) { in ParseObjCAtExpression()
2113 ExprResult Lit(Actions.ActOnNumericConstant(Tok)); in ParseObjCAtExpression()
2220 ExprResult Receiver = ParseExpression(); in ParseObjCXXMessageReceiver()
2249 ExprResult Receiver = ParseCXXTypeConstructExpression(DS); in ParseObjCXXMessageReceiver()
2325 ExprResult Parser::ParseObjCMessageExpression() { in ParseObjCMessageExpression()
2397 ExprResult Res(ParseExpression()); in ParseObjCMessageExpression()
2445 ExprResult
[all …]
DParseOpenMP.cpp268 ExprResult Res = in ParseOpenMPSimpleVarList()
414 ExprResult LHS(ParseCastExpression(false, false, NotTypeCast)); in ParseOpenMPSingleExprClause()
415 ExprResult Val(ParseRHSOfBinaryExpression(LHS, prec::Conditional)); in ParseOpenMPSingleExprClause()
489 ExprResult Val; in ParseOpenMPSingleExprWithArgClause()
502 ExprResult LHS(ParseCastExpression(false, false, NotTypeCast)); in ParseOpenMPSingleExprWithArgClause()
620 ExprResult VarExpr = ParseAssignmentExpression(); in ParseOpenMPVarListClause()
643 ExprResult Tail = ParseAssignmentExpression(); in ParseOpenMPVarListClause()
DParseStmtAsm.cpp65 ExprResult Result = TheParser.ParseMSAsmIdentifier( in LookupInlineAsmIdentifier()
169 ExprResult Parser::ParseMSAsmIdentifier(llvm::SmallVectorImpl<Token> &LineToks, in ParseMSAsmIdentifier()
614 ExprResult AsmString(ParseAsmStringLiteral()); in ParseAsmStatement()
675 ExprResult Clobber(ParseAsmStringLiteral()); in ParseAsmStatement()
734 ExprResult Constraint(ParseAsmStringLiteral()); in ParseAsmOperandsOpt()
750 ExprResult Res(ParseExpression()); in ParseAsmOperandsOpt()
DParseDeclCXX.cpp285 ExprResult Lang = ParseStringLiteralExpression(false); in ParseLinkage()
686 ExprResult AssertExpr(ParseConstantExpression()); in ParseStaticAssertDeclaration()
692 ExprResult AssertMessage; in ParseStaticAssertDeclaration()
740 ExprResult Result; in ParseDecltypeSpecifier()
850 DS.getTypeSpecType() == TST_decltype_auto ? ExprResult() : in AnnotateExistingDecltypeSpecifier()
1923 Declarator &DeclaratorInfo, VirtSpecifiers &VS, ExprResult &BitfieldSize, in ParseCXXMemberDeclaratorBeforeInitializer()
1948 ExprResult AsmLabel(ParseSimpleAsm(&Loc)); in ParseCXXMemberDeclaratorBeforeInitializer()
2170 ExprResult Init; in ParseCXXClassMemberDeclaration()
2173 ExprResult BitfieldSize; in ParseCXXClassMemberDeclaration()
2456 ExprResult Parser::ParseCXXMemberInitializer(Decl *D, bool IsFunction, in ParseCXXMemberInitializer()
[all …]

12