/external/clang/include/clang/Parse/ |
D | Parser.h | 553 static ExprResult getExprAnnotation(Token &Tok) { in getExprAnnotation() 554 return ExprResult::getFromOpaquePointer(Tok.getAnnotationValue()); in getExprAnnotation() 559 static void setExprAnnotation(Token &Tok, ExprResult ER) { in setExprAnnotation() 1169 ExprResult& Init); 1224 ExprResult ParseSimpleAsm(SourceLocation *EndLoc = nullptr); 1225 ExprResult ParseAsmStringLiteral(); 1314 ExprResult ParseExpression(TypeCastState isTypeCast = NotTypeCast); 1315 ExprResult ParseConstantExpression(TypeCastState isTypeCast = NotTypeCast); 1317 ExprResult ParseAssignmentExpression(TypeCastState isTypeCast = NotTypeCast); 1319 ExprResult ParseMSAsmIdentifier(llvm::SmallVectorImpl<Token> &LineToks, [all …]
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 1390 ExprResult Expr; 1398 NameClassification(ExprResult Expr) : Kind(NC_Expression), Expr(Expr) {} in NameClassification() 1442 ExprResult getExpression() const { in getExpression() 2048 CastKind PrepareCastToObjCObjectPointer(ExprResult &E); 2067 ExprResult PerformMoveOrCopyInitialization(const InitializedEntity &Entity, 2074 ExprResult Init); 2075 ExprResult PerformCopyInitialization(const InitializedEntity &Entity, 2077 ExprResult Init, 2080 ExprResult PerformObjectArgumentInitialization(Expr *From, 2085 ExprResult PerformContextuallyConvertToBool(Expr *From); [all …]
|
D | Ownership.h | 252 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/ |
D | TreeTransform.h | 132 static inline ExprResult Owned(Expr *E) { return E; } in Owned() 359 ExprResult TransformExpr(Expr *E); 368 ExprResult TransformInitializer(Expr *Init, bool NotCopyInit); 621 ExprResult TransformCXXNamedCastExpr(CXXNamedCastExpr *E); 623 typedef std::pair<ExprResult, QualType> InitCaptureInfoTy; 625 ExprResult TransformLambdaScope(LambdaExpr *E, CXXMethodDecl *CallOperator, 633 ExprResult TransformAddressOfOperand(Expr *E); 635 ExprResult TransformDependentScopeDeclRefExpr(DependentScopeDeclRefExpr *E, 639 ExprResult TransformParenDependentScopeDeclRefExpr( 652 ExprResult Transform##Node(Node *E); [all …]
|
D | SemaPseudoObject.cpp | 219 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 …]
|
D | SemaExpr.cpp | 481 ExprResult Sema::DefaultFunctionArrayConversion(Expr *E) { in DefaultFunctionArrayConversion() 484 ExprResult result = CheckPlaceholderExpr(E); in DefaultFunctionArrayConversion() 595 ExprResult Sema::DefaultLvalueConversion(Expr *E) { in DefaultLvalueConversion() 598 ExprResult result = CheckPlaceholderExpr(E); in DefaultLvalueConversion() 672 ExprResult Res = ImplicitCastExpr::Create(Context, T, CK_LValueToRValue, E, in DefaultLvalueConversion() 687 ExprResult Sema::DefaultFunctionArrayLvalueConversion(Expr *E) { in DefaultFunctionArrayLvalueConversion() 688 ExprResult Res = DefaultFunctionArrayConversion(E); in DefaultFunctionArrayLvalueConversion() 699 ExprResult Sema::CallExprUnaryConversions(Expr *E) { in CallExprUnaryConversions() 701 ExprResult Res = E; in CallExprUnaryConversions() 721 ExprResult Sema::UsualUnaryConversions(Expr *E) { in UsualUnaryConversions() [all …]
|
D | SemaExprCXX.cpp | 373 ExprResult Sema::BuildCXXTypeId(QualType TypeInfoType, in BuildCXXTypeId() 398 ExprResult Sema::BuildCXXTypeId(QualType TypeInfoType, in BuildCXXTypeId() 405 ExprResult result = CheckPlaceholderExpr(E); in BuildCXXTypeId() 426 ExprResult Result = TransformToPotentiallyEvaluated(E); in BuildCXXTypeId() 466 ExprResult 513 ExprResult Sema::BuildCXXUuidof(QualType TypeInfoType, in BuildCXXUuidof() 533 ExprResult Sema::BuildCXXUuidof(QualType TypeInfoType, in BuildCXXUuidof() 553 ExprResult 587 ExprResult 596 ExprResult [all …]
|
D | SemaExprMember.cpp | 236 ExprResult 443 ExprResult 686 static ExprResult LookupMemberExpr(Sema &S, LookupResult &R, 687 ExprResult &BaseExpr, bool &IsArrow, 691 ExprResult 723 ExprResult BaseResult = Base; in BuildMemberReferenceExpr() 724 ExprResult Result = LookupMemberExpr( in BuildMemberReferenceExpr() 749 static ExprResult 755 ExprResult 782 ExprResult result in BuildAnonymousStructUnionMemberReference() [all …]
|
D | SemaStmt.cpp | 42 StmtResult Sema::ActOnExprStmt(ExprResult FE) { in ActOnExprStmt() 375 ExprResult LHS = in ActOnCaseStmt() 416 : ExprResult(); in ActOnCaseStmt() 492 ExprResult CondResult(CondVal.release()); in ActOnIfStmt() 580 ExprResult CondResult; in ActOnStartOfSwitchStmt() 832 ExprResult ConvLo = in ActOnFinishSwitchStmt() 949 ExprResult ConvHi = in ActOnFinishSwitchStmt() 1226 ExprResult CondResult(Cond.release()); in ActOnWhileStmt() 1256 ExprResult CondResult = CheckBooleanCondition(Cond, DoLoc); in ActOnDoStmt() 1632 ExprResult SecondResult(second.release()); in ActOnForStmt() [all …]
|
D | SemaExprObjC.cpp | 34 ExprResult Sema::ParseObjCStringLiteral(SourceLocation *AtLocs, in ParseObjCStringLiteral() 83 ExprResult Sema::BuildObjCStringLiteral(SourceLocation AtLoc, StringLiteral *S){ in BuildObjCStringLiteral() 262 ExprResult Sema::BuildObjCNumericLiteral(SourceLocation AtLoc, Expr *Number) { in BuildObjCNumericLiteral() 299 ExprResult ConvertedNumber = PerformCopyInitialization(Entity, in BuildObjCNumericLiteral() 312 ExprResult Sema::ActOnObjCBoolLiteral(SourceLocation AtLoc, in ActOnObjCBoolLiteral() 315 ExprResult Inner; in ActOnObjCBoolLiteral() 331 static ExprResult CheckObjCCollectionLiteralElement(Sema &S, Expr *Element, in CheckObjCCollectionLiteralElement() 338 ExprResult Result = S.CheckPlaceholderExpr(Element); in CheckObjCCollectionLiteralElement() 446 ExprResult Sema::BuildObjCBoxedExpr(SourceRange SR, Expr *ValueExpr) { in BuildObjCBoxedExpr() 455 ExprResult RValue = DefaultFunctionArrayLvalueConversion(ValueExpr); in BuildObjCBoxedExpr() [all …]
|
D | SemaTemplateInstantiate.cpp | 756 ExprResult TransformPredefinedExpr(PredefinedExpr *E); 757 ExprResult TransformDeclRefExpr(DeclRefExpr *E); 758 ExprResult TransformCXXDefaultArgExpr(CXXDefaultArgExpr *E); 760 ExprResult TransformTemplateParmRefExpr(DeclRefExpr *E, 762 ExprResult TransformSubstNonTypeTemplateParmPackExpr( 766 ExprResult RebuildParmVarDeclRefExpr(ParmVarDecl *PD, SourceLocation Loc); 769 ExprResult TransformFunctionParmPackRefExpr(DeclRefExpr *E, 775 ExprResult TransformFunctionParmPackExpr(FunctionParmPackExpr *E); 806 ExprResult TransformCallExpr(CallExpr *CE) { in TransformCallExpr() 808 ExprResult Result = in TransformCallExpr() [all …]
|
D | SemaCast.cpp | 50 CastOperation(Sema &S, QualType destType, ExprResult src) in CastOperation() 65 ExprResult SrcExpr; 87 ExprResult complete(CastExpr *castExpr) { in complete() 180 static TryCastResult TryStaticMemberPointerUpcast(Sema &Self, ExprResult &SrcExpr, 188 static TryCastResult TryStaticImplicitCast(Sema &Self, ExprResult &SrcExpr, 194 static TryCastResult TryStaticCast(Sema &Self, ExprResult &SrcExpr, 201 static TryCastResult TryConstCast(Sema &Self, ExprResult &SrcExpr, 204 static TryCastResult TryReinterpretCast(Sema &Self, ExprResult &SrcExpr, 212 ExprResult 235 ExprResult [all …]
|
D | SemaOpenMP.cpp | 656 ExprResult Sema::ActOnOpenMPIdExpression(Scope *CurScope, in ActOnOpenMPIdExpression() 776 ExprResult DE = BuildDeclRefExpr(VD, ExprType, VK_LValue, Id.getLoc()); in ActOnOpenMPIdExpression() 2049 ExprResult Val = in SetStep() 2314 ExprResult Diff; in BuildNumIterations() 2569 static ExprResult BuildCounterUpdate(Sema &SemaRef, Scope *S, in BuildCounterUpdate() 2570 SourceLocation Loc, ExprResult VarRef, in BuildCounterUpdate() 2571 ExprResult Start, ExprResult Iter, in BuildCounterUpdate() 2572 ExprResult Step, bool Subtract) { in BuildCounterUpdate() 2579 ExprResult Update = SemaRef.BuildBinOp(S, Loc, BO_Mul, Iter.get(), in BuildCounterUpdate() 2601 static ExprResult WidenIterationCount(unsigned Bits, Expr *E, in WidenIterationCount() [all …]
|
D | SemaTemplateVariadic.cpp | 430 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() 825 ExprResult Sema::ActOnSizeofParameterPackExpr(Scope *S, in ActOnSizeofParameterPackExpr() 947 ExprResult Sema::ActOnCXXFoldExpr(SourceLocation LParenLoc, Expr *LHS, in ActOnCXXFoldExpr() 985 ExprResult Sema::BuildCXXFoldExpr(SourceLocation LParenLoc, Expr *LHS, in BuildCXXFoldExpr() 993 ExprResult Sema::BuildEmptyCXXFoldExpr(SourceLocation EllipsisLoc, in BuildEmptyCXXFoldExpr()
|
D | SemaOverload.cpp | 42 static ExprResult 64 ExprResult E = DRE; in CreateFunctionRefExpr() 823 ExprResult result = S.CheckPlaceholderExpr(E); in checkPlaceholderForOverload() 1262 ExprResult 1269 ExprResult 4853 ExprResult 4899 ExprResult FromRes = in PerformObjectArgumentInitialization() 4927 ExprResult Sema::PerformContextuallyConvertToBool(Expr *From) { in PerformContextuallyConvertToBool() 5008 static ExprResult CheckConvertedConstantExpression(Sema &S, Expr *From, in CheckConvertedConstantExpression() 5064 ExprResult Result = in CheckConvertedConstantExpression() [all …]
|
D | SemaStmtAsm.cpp | 153 ExprResult ER = CheckPlaceholderExpr(Exprs[i]); in ActOnGCCAsmStmt() 230 ExprResult ER = CheckPlaceholderExpr(Exprs[i]); in ActOnGCCAsmStmt() 262 ExprResult Result = DefaultFunctionArrayLvalueConversion(Exprs[i]); in ActOnGCCAsmStmt() 497 ExprResult Sema::LookupInlineAsmIdentifier(CXXScopeSpec &SS, in LookupInlineAsmIdentifier() 508 ExprResult Result = ActOnIdExpression(getCurScope(), SS, TemplateKWLoc, Id, in LookupInlineAsmIdentifier()
|
D | SemaInit.cpp | 316 static ExprResult PerformEmptyInit(Sema &SemaRef, 342 ExprResult InitListChecker::PerformEmptyInit(Sema &SemaRef, in PerformEmptyInit() 443 return VerifyOnly ? ExprResult(static_cast<Expr *>(nullptr)) in PerformEmptyInit() 469 ExprResult DIE = SemaRef.BuildCXXDefaultInitExpr(Loc, Field); in FillInEmptyInitForField() 497 ExprResult MemberInit = PerformEmptyInit(SemaRef, Loc, MemberEntity, in FillInEmptyInitForField() 598 ExprResult ElementInit = PerformEmptyInit(SemaRef, ILE->getLocEnd(), in FillInEmptyInitializations() 1011 ExprResult Result = in CheckSubElementType() 1058 ExprResult ExprRes = expr; in CheckSubElementType() 1186 ExprResult Result = in CheckScalarType() 1248 ExprResult Result = in CheckReferenceType() [all …]
|
/external/clang/lib/Parse/ |
D | ParseExpr.cpp | 120 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 …]
|
D | ParseInit.cpp | 131 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() 503 ExprResult SubElt; in ParseMicrosoftIfExistsBraceInitializer()
|
D | ParseExprCXX.cpp | 592 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() 847 ExprResult Init; in ParseLambdaIntroducer() 1045 ExprResult Parser::ParseLambdaExpressionAfterIntroducer( in ParseLambdaExpressionAfterIntroducer() 1112 ExprResult NoexceptExpr; in ParseLambdaExpressionAfterIntroducer() 1267 ExprResult Parser::ParseCXXCasts() { in ParseCXXCasts() 1312 ExprResult Result = ParseExpression(); in ParseCXXCasts() [all …]
|
D | ParseStmt.cpp | 384 ExprResult Expr(ParseExpression()); in ParseExprStatement() 475 ExprResult FilterExpr; in ParseSEHExceptBlock() 613 StmtResult Parser::ParseCaseStatement(bool MissingCase, ExprResult Expr) { in ParseCaseStatement() 657 ExprResult LHS; in ParseCaseStatement() 681 ExprResult RHS; in ParseCaseStatement() 984 ExprResult Res(ParseExpressionWithLeadingExtension(ExtLoc)); in ParseCompoundStatementBody() 1026 bool Parser::ParseParenExprOrCondition(ExprResult &ExprResult, in ParseParenExprOrCondition() argument 1034 ParseCXXCondition(ExprResult, DeclResult, Loc, ConvertToBoolean); in ParseParenExprOrCondition() 1036 ExprResult = ParseExpression(); in ParseParenExprOrCondition() 1040 if (!ExprResult.isInvalid() && ConvertToBoolean) in ParseParenExprOrCondition() [all …]
|
D | ParseObjc.cpp | 1728 ExprResult Res; in ParseObjCThrowStmt() 1755 ExprResult operand(ParseExpression()); in ParseObjCSynchronizedStmt() 2034 ExprResult Res(ParseExpressionWithLeadingAt(AtLoc)); in ParseObjCAtStatement() 2048 ExprResult Parser::ParseObjCAtExpression(SourceLocation AtLoc) { in ParseObjCAtExpression() 2072 ExprResult Lit(Actions.ActOnNumericConstant(Tok)); in ParseObjCAtExpression() 2182 ExprResult Receiver = Actions.CorrectDelayedTyposInExpr(ParseExpression()); in ParseObjCXXMessageReceiver() 2211 ExprResult Receiver = ParseCXXTypeConstructExpression(DS); in ParseObjCXXMessageReceiver() 2287 ExprResult Parser::ParseObjCMessageExpression() { in ParseObjCMessageExpression() 2359 ExprResult Res = Actions.CorrectDelayedTyposInExpr(ParseExpression()); in ParseObjCMessageExpression() 2407 ExprResult [all …]
|
D | ParseOpenMP.cpp | 327 ExprResult Res = in ParseOpenMPSimpleVarList() 494 ExprResult LHS(ParseCastExpression(false, false, NotTypeCast)); in ParseOpenMPSingleExprClause() 495 ExprResult Val(ParseRHSOfBinaryExpression(LHS, prec::Conditional)); in ParseOpenMPSingleExprClause() 578 ExprResult Val; in ParseOpenMPSingleExprWithArgClause() 591 ExprResult LHS(ParseCastExpression(false, false, NotTypeCast)); in ParseOpenMPSingleExprWithArgClause() 713 ExprResult VarExpr = in ParseOpenMPVarListClause() 740 ExprResult Tail = in ParseOpenMPVarListClause()
|
D | ParseStmtAsm.cpp | 65 ExprResult Result = TheParser.ParseMSAsmIdentifier( in LookupInlineAsmIdentifier() 183 ExprResult Parser::ParseMSAsmIdentifier(llvm::SmallVectorImpl<Token> &LineToks, in ParseMSAsmIdentifier() 646 ExprResult AsmString(ParseAsmStringLiteral()); in ParseAsmStatement() 707 ExprResult Clobber(ParseAsmStringLiteral()); in ParseAsmStatement() 766 ExprResult Constraint(ParseAsmStringLiteral()); in ParseAsmOperandsOpt() 782 ExprResult Res = Actions.CorrectDelayedTyposInExpr(ParseExpression()); in ParseAsmOperandsOpt()
|
D | ParseDeclCXX.cpp | 295 ExprResult Lang = ParseStringLiteralExpression(false); in ParseLinkage() 705 ExprResult AssertExpr(ParseConstantExpression()); in ParseStaticAssertDeclaration() 711 ExprResult AssertMessage; in ParseStaticAssertDeclaration() 759 ExprResult Result; in ParseDecltypeSpecifier() 872 DS.getTypeSpecType() == TST_decltype_auto ? ExprResult() : in AnnotateExistingDecltypeSpecifier() 2031 Declarator &DeclaratorInfo, VirtSpecifiers &VS, ExprResult &BitfieldSize, in ParseCXXMemberDeclaratorBeforeInitializer() 2059 ExprResult AsmLabel(ParseSimpleAsm(&Loc)); in ParseCXXMemberDeclaratorBeforeInitializer() 2377 ExprResult Init; in ParseCXXClassMemberDeclaration() 2380 ExprResult BitfieldSize; in ParseCXXClassMemberDeclaration() 2611 BitfieldSize = ExprResult(/*Invalid=*/false); in ParseCXXClassMemberDeclaration() [all …]
|