Home
last modified time | relevance | path

Searched refs:getDeclSpec (Results 1 – 20 of 20) sorted by relevance

/freebsd/contrib/llvm-project/clang/include/clang/Parse/
H A DRAIIObjectsForParser.h210 const ParsingDeclSpec &getDeclSpec() const { in getDeclSpec() function
211 return static_cast<const ParsingDeclSpec&>(Declarator::getDeclSpec()); in getDeclSpec()
215 return const_cast<ParsingDeclSpec&>(getDeclSpec()); in getMutableDeclSpec()
238 const ParsingDeclSpec &getDeclSpec() const { in getDeclSpec() function
239 return static_cast<const ParsingDeclSpec&>(D.getDeclSpec()); in getDeclSpec()
243 return const_cast<ParsingDeclSpec&>(getDeclSpec()); in getMutableDeclSpec()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaDecl.cpp6214 Diag(D.getDeclSpec().getBeginLoc(), diag::err_declarator_need_ident) in HandleDeclarator()
6215 << D.getDeclSpec().getSourceRange() << D.getSourceRange(); in HandleDeclarator()
6228 bool EnteringContext = !D.getDeclSpec().isFriendSpecified(); in HandleDeclarator()
6254 if (!D.getDeclSpec().isFriendSpecified()) { in HandleDeclarator()
6301 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in HandleDeclarator()
6304 (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_extern || in HandleDeclarator()
6310 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_static) in HandleDeclarator()
6378 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_typedef && in HandleDeclarator()
6393 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) { in HandleDeclarator()
6626 DiagnoseFunctionSpecifiers(D.getDeclSpec()); in ActOnTypedefDeclarator()
[all …]
H A DSemaType.cpp66 D.getDeclSpec().hasTypeSpecifier()) in isOmittedBlockReturnType()
363 return const_cast<DeclSpec&>(declarator.getDeclSpec()); in getMutableDeclSpec()
849 const DeclSpec &DS = declarator.getDeclSpec(); in checkOmittedBlockReturnType()
2955 D.getDeclSpec().getTypeQualifiers(), in diagnoseRedundantReturnTypeQualifiers()
2957 D.getDeclSpec().getConstSpecLoc(), in diagnoseRedundantReturnTypeQualifiers()
2958 D.getDeclSpec().getVolatileSpecLoc(), in diagnoseRedundantReturnTypeQualifiers()
2959 D.getDeclSpec().getRestrictSpecLoc(), in diagnoseRedundantReturnTypeQualifiers()
2960 D.getDeclSpec().getAtomicSpecLoc(), in diagnoseRedundantReturnTypeQualifiers()
2961 D.getDeclSpec().getUnalignedSpecLoc()); in diagnoseRedundantReturnTypeQualifiers()
2984 /*KeyLoc=*/D.getDeclSpec().getTypeSpecTypeLoc(), in InventTemplateParameter()
[all …]
H A DSemaLambda.cpp924 (ParamInfo.getDeclSpec().getStorageClassSpec() == in getLambdaType()
926 ParamInfo.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static) && in getLambdaType()
929 ParamInfo.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static; in getLambdaType()
1430 ParamInfo.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static; in ActOnStartOfLambdaDefinition()
1435 ParamInfo.getDeclSpec().getConstexprSpecifier(), in ActOnStartOfLambdaDefinition()
H A DSemaDeclCXX.cpp766 auto &DS = D.getDeclSpec(); in ActOnDecompositionDeclarator()
3321 const DeclSpec &DS = D.getDeclSpec(); in ActOnCXXMemberDeclarator()
3337 D.getDeclSpec().getAttributes().getMSPropertyAttr(); in ActOnCXXMemberDeclarator()
3422 if (D.getDeclSpec().getTypeQualifiers() & DeclSpec::TQ_const) in ActOnCXXMemberDeclarator()
10750 bool isVirtual = D.getDeclSpec().isVirtualSpecified(); in CheckConstructorDeclarator()
10760 << "virtual" << SourceRange(D.getDeclSpec().getVirtualSpecLoc()) in CheckConstructorDeclarator()
10767 << "static" << SourceRange(D.getDeclSpec().getStorageClassSpecLoc()) in CheckConstructorDeclarator()
10773 if (unsigned TypeQuals = D.getDeclSpec().getTypeQualifiers()) { in CheckConstructorDeclarator()
10776 D.getDeclSpec().getConstSpecLoc(), D.getDeclSpec() in CheckConstructorDeclarator()
[all...]
H A DSemaTemplate.cpp1464 const DeclSpec &DS = D.getDeclSpec(); in ActOnNonTypeTemplateParameter()
9821 Diag(D.getDeclSpec().getBeginLoc(), in ActOnExplicitInstantiation()
9823 << D.getDeclSpec().getSourceRange() << D.getSourceRange(); in ActOnExplicitInstantiation()
9840 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) { in ActOnExplicitInstantiation()
9844 } else if (D.getDeclSpec().getStorageClassSpec() in ActOnExplicitInstantiation()
9848 << FixItHint::CreateRemoval(D.getDeclSpec().getStorageClassSpecLoc()); in ActOnExplicitInstantiation()
9858 if (D.getDeclSpec().isInlineSpecified()) in ActOnExplicitInstantiation()
9859 Diag(D.getDeclSpec().getInlineSpecLoc(), in ActOnExplicitInstantiation()
9863 << FixItHint::CreateRemoval(D.getDeclSpec().getInlineSpecLoc()); in ActOnExplicitInstantiation()
9864 if (D.getDeclSpec().hasConstexprSpecifier() && R->isFunctionType()) in ActOnExplicitInstantiation()
[all …]
H A DSemaDeclObjC.cpp5203 const DeclSpec &DS = D.getDeclSpec(); in ActOnObjCExceptionDecl()
5217 if (DeclSpec::TSCS TSCS = D.getDeclSpec().getThreadStorageClassSpec()) in ActOnObjCExceptionDecl()
5218 Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(), in ActOnObjCExceptionDecl()
5223 SemaRef.DiagnoseFunctionSpecifiers(D.getDeclSpec()); in ActOnObjCExceptionDecl()
5670 if (D.getDeclSpec().isModulePrivateSpecified()) in ActOnIvar()
H A DSemaTemplateVariadic.cpp882 const DeclSpec &DS = D.getDeclSpec(); in containsUnexpandedParameterPacks()
H A DDeclSpec.cpp418 return getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static || in isStaticMember()
H A DSema.cpp2749 !D.getDeclSpec().isFriendSpecified()); in isDeclaratorFunctionLike()
H A DSemaDeclAttr.cpp7229 ::checkUnusedDeclAttributes(*this, D.getDeclSpec().getAttributes()); in checkUnusedDeclAttributes()
7361 ProcessAttributesWithSliding(PD.getDeclSpec().getAttributes(), in ProcessDeclAttributes()
H A DSemaExprCXX.cpp1917 if (D.getDeclSpec().hasAutoTypeSpec()) in ActOnCXXNew()
H A DSemaOpenMP.cpp7096 D.getDeclSpec().getConstexprSpecifier() == ConstexprSpecKind::Constexpr; in ActOnStartOfFunctionDefinitionInOpenMPDeclareVariantScope()
7098 D.getDeclSpec().getConstexprSpecifier() == ConstexprSpecKind::Consteval; in ActOnStartOfFunctionDefinitionInOpenMPDeclareVariantScope()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DDeclSpec.h2047 const DeclSpec &getDeclSpec() const { return DS; } in getDeclSpec() function
2259 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in mayBeFollowedByCXXDirectInit()
2262 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_extern && in mayBeFollowedByCXXDirectInit()
2511 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in isFunctionDeclarationContext()
2693 getDeclSpec().hasAttributes()) in hasAttributes()
2751 !getDeclSpec().isFriendSpecified(); in isFirstDeclarationOfMember()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseDecl.cpp5142 FD.D.getDeclSpec().getSourceRange().getBegin(), in ParseStructUnionBody()
6701 if (D.getDeclSpec().isTypeSpecPipe() && !isPipeDeclarator(D)) { in ParseDeclaratorInternal()
6934 D.getDeclSpec().getTypeSpecType() != TST_auto)) { in ParseDirectDeclarator()
6957 if (D.getDeclSpec().hasTypeSpecifier()) { in ParseDirectDeclarator()
7054 D.getDeclSpec().getTypeSpecType() == TST_auto) == in ParseDirectDeclarator()
7103 << (D.getDeclSpec().isEmpty() ? SourceRange() in ParseDirectDeclarator()
7104 : D.getDeclSpec().getSourceRange()); in ParseDirectDeclarator()
7112 << (D.getDeclSpec().isEmpty() ? SourceRange() in ParseDirectDeclarator()
7113 : D.getDeclSpec().getSourceRange()); in ParseDirectDeclarator()
7440 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_typedef && in InitCXXThisScopeForDeclaratorIfRelevant()
[all …]
H A DParseDeclCXX.cpp2707 DeclaratorInfo.getDeclSpec().getFriendSpecLoc()); in ParseCXXMemberDeclaratorBeforeInitializer()
2736 DeclaratorInfo.getDeclSpec().getFriendSpecLoc()); in ParseCXXMemberDeclaratorBeforeInitializer()
3208 } else if (DeclaratorInfo.getDeclSpec().getStorageClassSpec() != in ParseCXXClassMemberDeclaration()
3210 DeclaratorInfo.getDeclSpec().getStorageClassSpec() != in ParseCXXClassMemberDeclaration()
3265 DeclaratorInfo.getDeclSpec().getStorageClassSpec() == in ParseCXXClassMemberDeclaration()
3329 DeclaratorInfo.getDeclSpec().getStorageClassSpec() != in ParseCXXClassMemberDeclaration()
4344 InitCXXThisScopeForDeclaratorIfRelevant(D, D.getDeclSpec(), ThisScope); in ParseTrailingRequiresClause()
4366 D.getDeclSpec().getTypeSpecType() == TST_auto) { in ParseTrailingRequiresClause()
H A DParseCXXInlineMethods.cpp83 if (D.getDeclSpec().isFriendSpecified()) in ParseCXXInlineMethodDef()
158 !D.getDeclSpec().hasConstexprSpecifier() && in ParseCXXInlineMethodDef()
H A DParser.cpp1304 if (getLangOpts().isImplicitIntRequired() && D.getDeclSpec().isEmpty()) { in ParseFunctionDefinition()
1306 << D.getDeclSpec().getSourceRange(); in ParseFunctionDefinition()
1314 D.SetRangeBegin(D.getDeclSpec().getSourceRange().getBegin()); in ParseFunctionDefinition()
H A DParseObjc.cpp1286 attrs.getPool().takeAllFrom(D.getDeclSpec().getAttributePool()); in takeDeclAttributes()
2023 getCurScope(), FD.D.getDeclSpec().getSourceRange().getBegin(), FD.D, in ParseObjCClassInstanceVariables()
H A DParseExprCXX.cpp3475 D.SetSourceRange(D.getDeclSpec().getSourceRange()); in ParseExpressionListOrTypeId()