Home
last modified time | relevance | path

Searched refs:AssertExpr (Results 1 – 6 of 6) sorted by relevance

/llvm-project-15.0.7/clang/lib/Parse/
H A DParseDeclCXX.cpp909 static FixItHint getStaticAssertNoMessageFixIt(const Expr *AssertExpr, in getStaticAssertNoMessageFixIt() argument
911 if (const auto *BO = dyn_cast_or_null<BinaryOperator>(AssertExpr)) { in getStaticAssertNoMessageFixIt()
955 ExprResult AssertExpr(ParseConstantExpressionInExprEvalContext()); in ParseStaticAssertDeclaration() local
956 if (AssertExpr.isInvalid()) { in ParseStaticAssertDeclaration()
972 Diag(Tok, DiagVal) << getStaticAssertNoMessageFixIt(AssertExpr.get(), in ParseStaticAssertDeclaration()
1001 return Actions.ActOnStaticAssertDeclaration(StaticAssertLoc, AssertExpr.get(), in ParseStaticAssertDeclaration()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DDeclCXX.h3949 Expr *AssertExpr, StringLiteral *Message, in StaticAssertDecl() argument
3952 AssertExprAndFailed(AssertExpr, Failed), Message(Message), in StaticAssertDecl()
3962 Expr *AssertExpr, StringLiteral *Message,
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaDeclCXX.cpp16549 Expr *AssertExpr, in ActOnStaticAssertDeclaration() argument
16558 return BuildStaticAssertDeclaration(StaticAssertLoc, AssertExpr, in ActOnStaticAssertDeclaration()
16563 Expr *AssertExpr, in BuildStaticAssertDeclaration() argument
16567 assert(AssertExpr != nullptr && "Expected non-null condition"); in BuildStaticAssertDeclaration()
16568 if (!AssertExpr->isTypeDependent() && !AssertExpr->isValueDependent() && in BuildStaticAssertDeclaration()
16572 ExprResult Converted = PerformContextuallyConvertToBool(AssertExpr); in BuildStaticAssertDeclaration()
16583 AssertExpr = FullAssertExpr.get(); in BuildStaticAssertDeclaration()
16587 AssertExpr, &Cond, in BuildStaticAssertDeclaration()
16611 << !AssertMessage << Msg.str() << AssertExpr->getSourceRange(); in BuildStaticAssertDeclaration()
16622 << !AssertMessage << Msg.str() << AssertExpr->getSourceRange(); in BuildStaticAssertDeclaration()
[all …]
H A DSemaTemplateInstantiateDecl.cpp1390 Expr *AssertExpr = D->getAssertExpr(); in VisitStaticAssertDecl() local
1397 = SemaRef.SubstExpr(AssertExpr, TemplateArgs); in VisitStaticAssertDecl()
/llvm-project-15.0.7/clang/lib/AST/
H A DDeclCXX.cpp3197 Expr *AssertExpr, in Create() argument
3201 return new (C, DC) StaticAssertDecl(DC, StaticAssertLoc, AssertExpr, Message, in Create()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h7479 Expr *AssertExpr,
7483 Expr *AssertExpr,