Home
last modified time | relevance | path

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

12345

/external/llvm-project/clang/include/clang/Sema/
DSema.h1607 friend ExprResult ExprError(const SemaDiagnosticBuilder &) { in ExprError()
1613 operator ExprResult() const { return ExprError(); } in ExprResult() function
2273 ExprResult Expr;
2294 static NameClassification OverloadSet(ExprResult E) { in OverloadSet()
2346 ExprResult getExpression() const { in getExpression()
2413 ExprResult ActOnNameClassifiedAsUndeclaredNonType(IdentifierInfo *Name,
2417 ExprResult ActOnNameClassifiedAsDependentNonType(const CXXScopeSpec &SS,
2423 ExprResult ActOnNameClassifiedAsNonType(Scope *S, const CXXScopeSpec &SS,
2428 ExprResult ActOnNameClassifiedAsOverloadSet(Scope *S, Expr *OverloadSet);
2445 bool mightBeIntendedToBeTemplateName(ExprResult E, bool &Dependent) { in mightBeIntendedToBeTemplateName()
[all …]
DOwnership.h262 using ExprResult = ActionResult<Expr *>;
278 inline ExprResult ExprError() { return ExprResult(true); }
282 inline ExprResult ExprError(const StreamingDiagnostic &) {
289 inline ExprResult ExprEmpty() { return ExprResult(false); }
292 inline Expr *AssertSuccess(ExprResult R) {
/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/llvm-project/clang/include/clang/Parse/
DParser.h427 StmtResult handleExprStmt(ExprResult E, ParsedStmtContext StmtCtx);
825 static ExprResult getExprAnnotation(const Token &Tok) { in getExprAnnotation()
826 return ExprResult::getFromOpaquePointer(Tok.getAnnotationValue()); in getExprAnnotation()
831 static void setExprAnnotation(Token &Tok, ExprResult ER) { in setExprAnnotation()
1614 ExprResult ParseSimpleAsm(bool ForAsmLabel, SourceLocation *EndLoc);
1615 ExprResult ParseAsmStringLiteral(bool ForAsmLabel);
1753 ExprResult ParseExpression(TypeCastState isTypeCast = NotTypeCast);
1754 ExprResult ParseConstantExpressionInExprEvalContext(
1756 ExprResult ParseConstantExpression(TypeCastState isTypeCast = NotTypeCast);
1757 ExprResult ParseCaseExpression(SourceLocation CaseLoc);
[all …]
/external/clang/lib/Sema/
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 …]
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 …]
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 …]
/external/llvm-project/clang/lib/Sema/
DTreeTransform.h139 static inline ExprResult Owned(Expr *E) { return E; } in Owned()
404 ExprResult TransformExpr(Expr *E);
413 ExprResult TransformInitializer(Expr *Init, bool NotCopyInit);
701 ExprResult TransformCXXNamedCastExpr(CXXNamedCastExpr *E);
708 ExprResult TransformAddressOfOperand(Expr *E);
710 ExprResult TransformDependentScopeDeclRefExpr(DependentScopeDeclRefExpr *E,
714 ExprResult TransformParenDependentScopeDeclRefExpr(
730 ExprResult Transform##Node(Node *E);
1467 ExprResult RebuildCoawaitExpr(SourceLocation CoawaitLoc, Expr *Result, in RebuildCoawaitExpr()
1476 ExprResult RebuildDependentCoawaitExpr(SourceLocation CoawaitLoc, in RebuildDependentCoawaitExpr()
[all …]
DSemaPseudoObject.cpp208 ExprResult buildRValueOperation(Expr *op);
209 ExprResult buildAssignmentOperation(Scope *Sc,
213 ExprResult buildIncDecOperation(Scope *Sc, SourceLocation opLoc,
217 virtual ExprResult complete(Expr *syntacticForm);
244 virtual ExprResult buildGet() = 0;
245 virtual ExprResult buildSet(Expr *, SourceLocation,
281 ExprResult buildRValueOperation(Expr *op);
282 ExprResult buildAssignmentOperation(Scope *Sc,
286 ExprResult buildIncDecOperation(Scope *Sc, SourceLocation opLoc,
290 bool tryBuildGetOfReference(Expr *op, ExprResult &result);
[all …]
DSemaCoroutine.cpp254 static ExprResult buildOperatorCoawaitLookupExpr(Sema &SemaRef, Scope *S, in buildOperatorCoawaitLookupExpr()
277 static ExprResult buildOperatorCoawaitCall(Sema &SemaRef, SourceLocation Loc, in buildOperatorCoawaitCall()
285 static ExprResult buildOperatorCoawaitCall(Sema &SemaRef, Scope *S, in buildOperatorCoawaitCall()
287 ExprResult R = buildOperatorCoawaitLookupExpr(SemaRef, S, Loc); in buildOperatorCoawaitCall()
303 ExprResult DeclRef = in buildBuiltinCall()
307 ExprResult Call = in buildBuiltinCall()
314 static ExprResult buildCoroutineHandle(Sema &S, QualType PromiseType, in buildCoroutineHandle()
333 ExprResult FromAddr = in buildCoroutineHandle()
348 static ExprResult buildMemberCall(Sema &S, Expr *Base, SourceLocation Loc, in buildMemberCall()
354 ExprResult Result = S.BuildMemberReferenceExpr( in buildMemberCall()
[all …]
DSemaExpr.cpp503 ExprResult Sema::DefaultFunctionArrayConversion(Expr *E, bool Diagnose) { in DefaultFunctionArrayConversion()
506 ExprResult result = CheckPlaceholderExpr(E); in DefaultFunctionArrayConversion()
623 ExprResult Sema::DefaultLvalueConversion(Expr *E) { in DefaultLvalueConversion()
626 ExprResult result = CheckPlaceholderExpr(E); in DefaultLvalueConversion()
701 ExprResult Res = CheckLValueToRValueConversionOperand(E); in DefaultLvalueConversion()
732 ExprResult Sema::DefaultFunctionArrayLvalueConversion(Expr *E, bool Diagnose) { in DefaultFunctionArrayLvalueConversion()
733 ExprResult Res = DefaultFunctionArrayConversion(E, Diagnose); in DefaultFunctionArrayLvalueConversion()
744 ExprResult Sema::CallExprUnaryConversions(Expr *E) { in CallExprUnaryConversions()
746 ExprResult Res = E; in CallExprUnaryConversions()
766 ExprResult Sema::UsualUnaryConversions(Expr *E) { in UsualUnaryConversions()
[all …]
DSemaExprCXX.cpp516 ExprResult Sema::BuildCXXTypeId(QualType TypeInfoType, in BuildCXXTypeId()
544 ExprResult Sema::BuildCXXTypeId(QualType TypeInfoType, in BuildCXXTypeId()
551 ExprResult result = CheckPlaceholderExpr(E); in BuildCXXTypeId()
572 ExprResult Result = TransformToPotentiallyEvaluated(E); in BuildCXXTypeId()
582 ExprResult Result = CheckUnevaluatedOperand(E); in BuildCXXTypeId()
617 ExprResult
666 ExprResult Result = in ActOnCXXTypeid()
716 ExprResult Sema::BuildCXXUuidof(QualType Type, in BuildCXXUuidof()
736 ExprResult Sema::BuildCXXUuidof(QualType Type, SourceLocation TypeidLoc, in BuildCXXUuidof()
759 ExprResult
[all …]
DSemaExprMember.cpp234 ExprResult Sema::BuildPossibleImplicitMemberExpr( in BuildPossibleImplicitMemberExpr()
477 ExprResult
735 static ExprResult LookupMemberExpr(Sema &S, LookupResult &R,
736 ExprResult &BaseExpr, bool &IsArrow,
741 ExprResult
774 ExprResult BaseResult = Base; in BuildMemberReferenceExpr()
775 ExprResult Result = in BuildMemberReferenceExpr()
800 ExprResult
824 ExprResult result in BuildAnonymousStructUnionMemberReference()
881 static ExprResult
[all …]
DSemaStmt.cpp45 StmtResult Sema::ActOnExprStmt(ExprResult FE, bool DiscardedValue) { in ActOnExprStmt()
439 ExprResult
440 Sema::ActOnCaseExpr(SourceLocation CaseLoc, ExprResult Val) { in ActOnCaseExpr()
461 return ExprResult(E); in ActOnCaseExpr()
471 ExprResult ER = E; in ActOnCaseExpr()
483 ExprResult Converted = CorrectDelayedTyposInExpr( in ActOnCaseExpr()
492 Sema::ActOnCaseStmt(SourceLocation CaseLoc, ExprResult LHSVal, in ActOnCaseStmt()
493 SourceLocation DotDotDotLoc, ExprResult RHSVal, in ActOnCaseStmt()
709 ExprResult Sema::CheckSwitchCondition(SourceLocation SwitchLoc, Expr *Cond) { in CheckSwitchCondition()
757 ExprResult CondResult = in CheckSwitchCondition()
[all …]
/external/llvm-project/clang/lib/Parse/
DParseExpr.cpp123 ExprResult Parser::ParseExpression(TypeCastState isTypeCast) { in ParseExpression()
124 ExprResult LHS(ParseAssignmentExpression(isTypeCast)); in ParseExpression()
133 ExprResult
135 ExprResult LHS(ParseObjCAtExpression(AtLoc)); in ParseExpressionWithLeadingAt()
142 ExprResult
144 ExprResult LHS(true); in ParseExpressionWithLeadingExtension()
160 ExprResult Parser::ParseAssignmentExpression(TypeCastState isTypeCast) { in ParseAssignmentExpression()
173 ExprResult LHS = ParseCastExpression(AnyCastExpr, in ParseAssignmentExpression()
188 ExprResult
193 ExprResult R in ParseAssignmentExprWithObjCMessageExprStart()
[all …]
DParseExprCXX.cpp557 ExprResult Parser::tryParseCXXIdExpression(CXXScopeSpec &SS, in tryParseCXXIdExpression()
560 ExprResult E; in tryParseCXXIdExpression()
664 ExprResult Parser::ParseCXXIdExpression(bool isAddressOfOperand) { in ParseCXXIdExpression()
675 ExprResult Result = in ParseCXXIdExpression()
729 ExprResult Parser::ParseLambdaExpression() { in ParseLambdaExpression()
746 ExprResult Parser::TryParseLambdaExpression() { in TryParseLambdaExpression()
913 ExprResult Init; in ParseLambdaIntroducer()
1232 ExprResult Parser::ParseLambdaExpressionAfterIntroducer( in ParseLambdaExpressionAfterIntroducer()
1290 ExprResult RequiresClause; in ParseLambdaExpressionAfterIntroducer()
1363 ExprResult NoexceptExpr; in ParseLambdaExpressionAfterIntroducer()
[all …]
DParseInit.cpp161 ExprResult Parser::ParseInitializerWithPotentialDesignator( in ParseInitializerWithPotentialDesignator()
243 ExprResult Idx; in ParseInitializerWithPotentialDesignator()
281 Idx = ExprResult(static_cast<Expr*>(TypeOrExpr)); in ParseInitializerWithPotentialDesignator()
367 ExprResult RHS(ParseConstantExpression()); in ParseInitializerWithPotentialDesignator()
432 ExprResult Parser::ParseBraceInitializer() { in ParseBraceInitializer()
477 ExprResult SubElt; in ParseBraceInitializer()
567 ExprResult SubElt; in ParseMicrosoftIfExistsBraceInitializer()
/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 …]

12345