Home
last modified time | relevance | path

Searched refs:ConstexprLoc (Results 1 – 4 of 4) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DDeclSpec.cpp1139 ConstexprLoc = Loc; in SetConstexprSpec()
1390 S.Diag(ConstexprLoc, diag::err_invalid_decl_spec_combination) in Finish()
1399 S.Diag(ConstexprLoc, diag::err_invalid_decl_spec_combination) in Finish()
1434 S.Diag(ConstexprLoc, diag::warn_cxx98_compat_constexpr); in Finish()
1436 S.Diag(ConstexprLoc, diag::warn_cxx20_compat_consteval); in Finish()
1438 S.Diag(ConstexprLoc, diag::warn_cxx20_compat_constinit); in Finish()
H A DSemaDeclCXX.cpp3532 SourceLocation ConstexprLoc = DS.getConstexprSpecLoc(); in ActOnCXXMemberDeclarator() local
3536 B << FixItHint::CreateRemoval(ConstexprLoc); in ActOnCXXMemberDeclarator()
3538 B << FixItHint::CreateReplacement(ConstexprLoc, "const"); in ActOnCXXMemberDeclarator()
3543 DeclSpec::TQ_const, ConstexprLoc, PrevSpec, DiagID, getLangOpts()); in ActOnCXXMemberDeclarator()
3552 *this, DeclSpec::SCS_static, ConstexprLoc, PrevSpec, DiagID, in ActOnCXXMemberDeclarator()
3558 B << 0 << FixItHint::CreateInsertion(ConstexprLoc, "static "); in ActOnCXXMemberDeclarator()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseExprCXX.cpp1093 SourceLocation &ConstexprLoc, in tryConsumeLambdaSpecifierToken() argument
1098 assert(ConstexprLoc.isInvalid()); in tryConsumeLambdaSpecifierToken()
1125 ConsumeLocation(ConstexprLoc, 2); in tryConsumeLambdaSpecifierToken()
1153 addConstexprToLambdaDeclSpecifier(Parser &P, SourceLocation ConstexprLoc, in addConstexprToLambdaDeclSpecifier() argument
1155 if (ConstexprLoc.isValid()) { in addConstexprToLambdaDeclSpecifier()
1156 P.Diag(ConstexprLoc, !P.getLangOpts().CPlusPlus17 in addConstexprToLambdaDeclSpecifier()
1161 DS.SetConstexprSpec(ConstexprSpecKind::Constexpr, ConstexprLoc, PrevSpec, in addConstexprToLambdaDeclSpecifier()
1369 SourceLocation ConstexprLoc; in ParseLambdaExpressionAfterIntroducer() local
1373 tryConsumeLambdaSpecifierToken(*this, MutableLoc, StaticLoc, ConstexprLoc, in ParseLambdaExpressionAfterIntroducer()
1379 addConstexprToLambdaDeclSpecifier(*this, ConstexprLoc, DS); in ParseLambdaExpressionAfterIntroducer()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DDeclSpec.h444 SourceLocation FriendLoc, ModulePrivateLoc, ConstexprLoc; variable
835 SourceLocation getConstexprSpecLoc() const { return ConstexprLoc; } in getConstexprSpecLoc()
842 ConstexprLoc = SourceLocation(); in ClearConstexprSpec()