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.cpp6329 Diag(D.getDeclSpec().getBeginLoc(), diag::err_declarator_need_ident) in HandleDeclarator()
6330 << D.getDeclSpec().getSourceRange() << D.getSourceRange(); in HandleDeclarator()
6343 bool EnteringContext = !D.getDeclSpec().isFriendSpecified(); in HandleDeclarator()
6369 if (!D.getDeclSpec().isFriendSpecified()) { in HandleDeclarator()
6416 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in HandleDeclarator()
6419 (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_extern || in HandleDeclarator()
6425 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_static) in HandleDeclarator()
6493 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_typedef && in HandleDeclarator()
6508 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) { in HandleDeclarator()
6743 DiagnoseFunctionSpecifiers(D.getDeclSpec()); in ActOnTypedefDeclarator()
[all …]
H A DSemaType.cpp65 D.getDeclSpec().hasTypeSpecifier()) in isOmittedBlockReturnType()
374 return const_cast<DeclSpec&>(declarator.getDeclSpec()); in getMutableDeclSpec()
860 const DeclSpec &DS = declarator.getDeclSpec(); in checkOmittedBlockReturnType()
3007 D.getDeclSpec().getTypeQualifiers(), in diagnoseRedundantReturnTypeQualifiers()
3009 D.getDeclSpec().getConstSpecLoc(), in diagnoseRedundantReturnTypeQualifiers()
3010 D.getDeclSpec().getVolatileSpecLoc(), in diagnoseRedundantReturnTypeQualifiers()
3011 D.getDeclSpec().getRestrictSpecLoc(), in diagnoseRedundantReturnTypeQualifiers()
3012 D.getDeclSpec().getAtomicSpecLoc(), in diagnoseRedundantReturnTypeQualifiers()
3013 D.getDeclSpec().getUnalignedSpecLoc()); in diagnoseRedundantReturnTypeQualifiers()
3036 /*KeyLoc=*/D.getDeclSpec().getTypeSpecTypeLoc(), in InventTemplateParameter()
[all …]
H A DSemaLambda.cpp945 (ParamInfo.getDeclSpec().getStorageClassSpec() == in getLambdaType()
947 ParamInfo.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static) && in getLambdaType()
950 ParamInfo.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static; in getLambdaType()
1457 ParamInfo.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static; in ActOnStartOfLambdaDefinition()
1462 ParamInfo.getDeclSpec().getConstexprSpecifier(), in ActOnStartOfLambdaDefinition()
H A DSemaDeclCXX.cpp770 auto &DS = D.getDeclSpec(); in ActOnDecompositionDeclarator()
3436 const DeclSpec &DS = D.getDeclSpec(); in ActOnCXXMemberDeclarator()
3450 D.getDeclSpec().getAttributes().getMSPropertyAttr(); in ActOnCXXMemberDeclarator()
3535 if (D.getDeclSpec().getTypeQualifiers() & DeclSpec::TQ_const) in ActOnCXXMemberDeclarator()
10986 bool isVirtual = D.getDeclSpec().isVirtualSpecified(); in CheckConstructorDeclarator()
10996 << "virtual" << SourceRange(D.getDeclSpec().getVirtualSpecLoc()) in CheckConstructorDeclarator()
11003 << "static" << SourceRange(D.getDeclSpec().getStorageClassSpecLoc()) in CheckConstructorDeclarator()
11009 if (unsigned TypeQuals = D.getDeclSpec().getTypeQualifiers()) { in CheckConstructorDeclarator()
11012 D.getDeclSpec().getConstSpecLoc(), D.getDeclSpec().getVolatileSpecLoc(), in CheckConstructorDeclarator()
11013 D.getDeclSpec().getRestrictSpecLoc(), in CheckConstructorDeclarator()
[all …]
H A DSemaTemplate.cpp1470 const DeclSpec &DS = D.getDeclSpec(); in ActOnNonTypeTemplateParameter()
10351 Diag(D.getDeclSpec().getBeginLoc(), in ActOnExplicitInstantiation()
10353 << D.getDeclSpec().getSourceRange() << D.getSourceRange(); in ActOnExplicitInstantiation()
10370 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) { in ActOnExplicitInstantiation()
10374 } else if (D.getDeclSpec().getStorageClassSpec() in ActOnExplicitInstantiation()
10378 << FixItHint::CreateRemoval(D.getDeclSpec().getStorageClassSpecLoc()); in ActOnExplicitInstantiation()
10388 if (D.getDeclSpec().isInlineSpecified()) in ActOnExplicitInstantiation()
10389 Diag(D.getDeclSpec().getInlineSpecLoc(), in ActOnExplicitInstantiation()
10393 << FixItHint::CreateRemoval(D.getDeclSpec().getInlineSpecLoc()); in ActOnExplicitInstantiation()
10394 if (D.getDeclSpec().hasConstexprSpecifier() && R->isFunctionType()) in ActOnExplicitInstantiation()
[all …]
H A DSemaDeclObjC.cpp5207 const DeclSpec &DS = D.getDeclSpec(); in ActOnObjCExceptionDecl()
5221 if (DeclSpec::TSCS TSCS = D.getDeclSpec().getThreadStorageClassSpec()) in ActOnObjCExceptionDecl()
5222 Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(), in ActOnObjCExceptionDecl()
5227 SemaRef.DiagnoseFunctionSpecifiers(D.getDeclSpec()); in ActOnObjCExceptionDecl()
5680 if (D.getDeclSpec().isModulePrivateSpecified()) in ActOnIvar()
H A DSemaTemplateVariadic.cpp1002 const DeclSpec &DS = D.getDeclSpec(); in containsUnexpandedParameterPacks()
H A DDeclSpec.cpp417 return getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static || in isStaticMember()
H A DSema.cpp2917 !D.getDeclSpec().isFriendSpecified()); in isDeclaratorFunctionLike()
H A DSemaDeclAttr.cpp8029 ::checkUnusedDeclAttributes(*this, D.getDeclSpec().getAttributes()); in checkUnusedDeclAttributes()
8202 ProcessAttributesWithSliding(PD.getDeclSpec().getAttributes(), in ProcessDeclAttributes()
H A DSemaExprCXX.cpp2016 if (D.getDeclSpec().hasAutoTypeSpec()) in ActOnCXXNew()
H A DSemaOpenMP.cpp7044 D.getDeclSpec().getConstexprSpecifier() == ConstexprSpecKind::Constexpr; in ActOnStartOfFunctionDefinitionInOpenMPDeclareVariantScope()
7046 D.getDeclSpec().getConstexprSpecifier() == ConstexprSpecKind::Consteval; in ActOnStartOfFunctionDefinitionInOpenMPDeclareVariantScope()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DDeclSpec.h2050 const DeclSpec &getDeclSpec() const { return DS; } in getDeclSpec() function
2262 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in mayBeFollowedByCXXDirectInit()
2265 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_extern && in mayBeFollowedByCXXDirectInit()
2514 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in isFunctionDeclarationContext()
2696 getDeclSpec().hasAttributes()) in hasAttributes()
2754 !getDeclSpec().isFriendSpecified(); in isFirstDeclarationOfMember()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseDecl.cpp4908 FD.D.getDeclSpec().getSourceRange().getBegin(), in ParseStructUnionBody()
6412 if (D.getDeclSpec().isTypeSpecPipe() && !isPipeDeclarator(D)) { in ParseDeclaratorInternal()
6600 D.getDeclSpec().getTypeSpecType() != TST_auto)) { in ParseDirectDeclarator()
6623 if (D.getDeclSpec().hasTypeSpecifier()) { in ParseDirectDeclarator()
6720 D.getDeclSpec().getTypeSpecType() == TST_auto) == in ParseDirectDeclarator()
6769 << (D.getDeclSpec().isEmpty() ? SourceRange() in ParseDirectDeclarator()
6770 : D.getDeclSpec().getSourceRange()); in ParseDirectDeclarator()
6778 << (D.getDeclSpec().isEmpty() ? SourceRange() in ParseDirectDeclarator()
6779 : D.getDeclSpec().getSourceRange()); in ParseDirectDeclarator()
7121 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_typedef && in InitCXXThisScopeForDeclaratorIfRelevant()
[all …]
H A DParseDeclCXX.cpp2590 DeclaratorInfo.getDeclSpec().getFriendSpecLoc()); in ParseCXXMemberDeclaratorBeforeInitializer()
2619 DeclaratorInfo.getDeclSpec().getFriendSpecLoc()); in ParseCXXMemberDeclaratorBeforeInitializer()
3132 } else if (DeclaratorInfo.getDeclSpec().getStorageClassSpec() != in ParseCXXClassMemberDeclaration()
3134 DeclaratorInfo.getDeclSpec().getStorageClassSpec() != in ParseCXXClassMemberDeclaration()
3189 DeclaratorInfo.getDeclSpec().getStorageClassSpec() == in ParseCXXClassMemberDeclaration()
3253 DeclaratorInfo.getDeclSpec().getStorageClassSpec() != in ParseCXXClassMemberDeclaration()
4210 InitCXXThisScopeForDeclaratorIfRelevant(D, D.getDeclSpec(), ThisScope); in ParseTrailingRequiresClause()
4232 D.getDeclSpec().getTypeSpecType() == TST_auto) { in ParseTrailingRequiresClause()
H A DParseCXXInlineMethods.cpp77 if (D.getDeclSpec().isFriendSpecified()) in ParseCXXInlineMethodDef()
152 !D.getDeclSpec().hasConstexprSpecifier() && in ParseCXXInlineMethodDef()
H A DParser.cpp1228 if (getLangOpts().isImplicitIntRequired() && D.getDeclSpec().isEmpty()) { in ParseFunctionDefinition()
1230 << D.getDeclSpec().getSourceRange(); in ParseFunctionDefinition()
1238 D.SetRangeBegin(D.getDeclSpec().getSourceRange().getBegin()); in ParseFunctionDefinition()
H A DParseObjc.cpp1088 attrs.getPool().takeAllFrom(D.getDeclSpec().getAttributePool()); in takeDeclAttributes()
1773 getCurScope(), FD.D.getDeclSpec().getSourceRange().getBegin(), FD.D, in ParseObjCClassInstanceVariables()
H A DParseExprCXX.cpp3037 D.SetSourceRange(D.getDeclSpec().getSourceRange()); in ParseExpressionListOrTypeId()