Searched refs:ConstexprLoc (Results 1 – 7 of 7) sorted by relevance
/external/clang/lib/Parse/ |
D | ParseExprCXX.cpp | 1058 SourceLocation &ConstexprLoc, in tryConsumeMutableOrConstexprToken() argument 1061 assert(ConstexprLoc.isInvalid()); in tryConsumeMutableOrConstexprToken() 1079 if (ConstexprLoc.isValid()) { in tryConsumeMutableOrConstexprToken() 1084 ConstexprLoc = P.ConsumeToken(); in tryConsumeMutableOrConstexprToken() 1085 DeclEndLoc = ConstexprLoc; in tryConsumeMutableOrConstexprToken() 1094 addConstexprToLambdaDeclSpecifier(Parser &P, SourceLocation ConstexprLoc, in addConstexprToLambdaDeclSpecifier() argument 1096 if (ConstexprLoc.isValid()) { in addConstexprToLambdaDeclSpecifier() 1097 P.Diag(ConstexprLoc, !P.getLangOpts().CPlusPlus1z in addConstexprToLambdaDeclSpecifier() 1102 DS.SetConstexprSpec(ConstexprLoc, PrevSpec, DiagID); in addConstexprToLambdaDeclSpecifier() 1168 SourceLocation ConstexprLoc; in ParseLambdaExpressionAfterIntroducer() local [all …]
|
/external/llvm-project/clang/lib/Parse/ |
D | ParseExprCXX.cpp | 1155 SourceLocation &ConstexprLoc, in tryConsumeLambdaSpecifierToken() argument 1159 assert(ConstexprLoc.isInvalid()); in tryConsumeLambdaSpecifierToken() 1177 if (ConstexprLoc.isValid()) { in tryConsumeLambdaSpecifierToken() 1182 ConstexprLoc = P.ConsumeToken(); in tryConsumeLambdaSpecifierToken() 1183 DeclEndLoc = ConstexprLoc; in tryConsumeLambdaSpecifierToken() 1201 addConstexprToLambdaDeclSpecifier(Parser &P, SourceLocation ConstexprLoc, in addConstexprToLambdaDeclSpecifier() argument 1203 if (ConstexprLoc.isValid()) { in addConstexprToLambdaDeclSpecifier() 1204 P.Diag(ConstexprLoc, !P.getLangOpts().CPlusPlus17 in addConstexprToLambdaDeclSpecifier() 1209 DS.SetConstexprSpec(ConstexprSpecKind::Constexpr, ConstexprLoc, PrevSpec, in addConstexprToLambdaDeclSpecifier() 1351 SourceLocation ConstexprLoc; in ParseLambdaExpressionAfterIntroducer() local [all …]
|
/external/llvm-project/clang/lib/Sema/ |
D | DeclSpec.cpp | 1096 ConstexprLoc = Loc; in SetConstexprSpec() 1362 S.Diag(ConstexprLoc, diag::warn_cxx98_compat_constexpr); in Finish() 1364 S.Diag(ConstexprLoc, diag::warn_cxx20_compat_consteval); in Finish() 1366 S.Diag(ConstexprLoc, diag::warn_cxx20_compat_constinit); in Finish()
|
D | SemaDeclCXX.cpp | 3303 SourceLocation ConstexprLoc = DS.getConstexprSpecLoc(); in ActOnCXXMemberDeclarator() local 3307 B << FixItHint::CreateRemoval(ConstexprLoc); in ActOnCXXMemberDeclarator() 3309 B << FixItHint::CreateReplacement(ConstexprLoc, "const"); in ActOnCXXMemberDeclarator() 3314 DeclSpec::TQ_const, ConstexprLoc, PrevSpec, DiagID, getLangOpts()); in ActOnCXXMemberDeclarator() 3323 *this, DeclSpec::SCS_static, ConstexprLoc, PrevSpec, DiagID, in ActOnCXXMemberDeclarator() 3329 B << 0 << FixItHint::CreateInsertion(ConstexprLoc, "static "); in ActOnCXXMemberDeclarator()
|
/external/clang/lib/Sema/ |
D | DeclSpec.cpp | 917 ConstexprLoc = Loc; in SetConstexprSpec() 1166 S.Diag(ConstexprLoc, diag::warn_cxx98_compat_constexpr); in Finish()
|
D | SemaDeclCXX.cpp | 2102 SourceLocation ConstexprLoc = DS.getConstexprSpecLoc(); in ActOnCXXMemberDeclarator() local 2106 B << FixItHint::CreateRemoval(ConstexprLoc); in ActOnCXXMemberDeclarator() 2108 B << FixItHint::CreateReplacement(ConstexprLoc, "const"); in ActOnCXXMemberDeclarator() 2113 DeclSpec::TQ_const, ConstexprLoc, PrevSpec, DiagID, getLangOpts()); in ActOnCXXMemberDeclarator() 2122 *this, DeclSpec::SCS_static, ConstexprLoc, PrevSpec, DiagID, in ActOnCXXMemberDeclarator() 2128 B << 0 << FixItHint::CreateInsertion(ConstexprLoc, "static "); in ActOnCXXMemberDeclarator()
|
/external/llvm-project/clang/include/clang/Sema/ |
D | DeclSpec.h | 393 SourceLocation FriendLoc, ModulePrivateLoc, ConstexprLoc; variable 758 SourceLocation getConstexprSpecLoc() const { return ConstexprLoc; } in getConstexprSpecLoc() 765 ConstexprLoc = SourceLocation(); in ClearConstexprSpec()
|