Home
last modified time | relevance | path

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

/llvm-project-15.0.7/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()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaDecl.cpp6570 DiagnoseFunctionSpecifiers(D.getDeclSpec()); in ActOnTypedefDeclarator()
6572 if (D.getDeclSpec().isInlineSpecified()) in ActOnTypedefDeclarator()
6575 if (D.getDeclSpec().hasConstexprSpecifier()) in ActOnTypedefDeclarator()
7560 if (D.getDeclSpec().isInlineSpecified()) { in ActOnVariableDeclarator()
8936 (D.getDeclSpec().isTypeRep() && in CreateNewFunctionDecl()
9943 if (D.getDeclSpec().isNoreturnSpecified()) in ActOnFunctionDeclarator()
10003 CheckMain(NewFD, D.getDeclSpec()); in ActOnFunctionDeclarator()
10154 CheckMain(NewFD, D.getDeclSpec()); in ActOnFunctionDeclarator()
14209 const DeclSpec &DS = D.getDeclSpec(); in ActOnParamDeclarator()
14898 if (D.getDeclSpec().hasAutoTypeSpec()) { in canDelayFunctionBody()
[all …]
H A DSemaType.cpp55 D.getDeclSpec().hasTypeSpecifier()) in isOmittedBlockReturnType()
818 const DeclSpec &DS = declarator.getDeclSpec(); in checkOmittedBlockReturnType()
3518 if (D.getDeclSpec().isFriendSpecified()) in GetDeclSpecTypeForDeclarator()
4872 D.getDeclSpec().getEndLoc(), in GetFullTypeForDeclarator()
5067 if (D.getDeclSpec().hasAutoTypeSpec() && in GetFullTypeForDeclarator()
5070 S.Diag(D.getDeclSpec().getTypeSpecTypeLoc(), in GetFullTypeForDeclarator()
5077 S.Diag(D.getDeclSpec().getTypeSpecTypeLoc(), in GetFullTypeForDeclarator()
5089 S.Diag(D.getDeclSpec().getBeginLoc(), in GetFullTypeForDeclarator()
5099 S.Diag(D.getDeclSpec().getTypeSpecTypeLoc(), in GetFullTypeForDeclarator()
5101 << T << D.getDeclSpec().getSourceRange(); in GetFullTypeForDeclarator()
[all …]
H A DSemaDeclCXX.cpp750 auto &DS = D.getDeclSpec(); in ActOnDecompositionDeclarator()
3270 const DeclSpec &DS = D.getDeclSpec(); in ActOnCXXMemberDeclarator()
10480 D.getDeclSpec().getConstSpecLoc(), D.getDeclSpec().getVolatileSpecLoc(), in CheckConstructorDeclarator()
10481 D.getDeclSpec().getRestrictSpecLoc(), in CheckConstructorDeclarator()
10482 D.getDeclSpec().getAtomicSpecLoc()); in CheckConstructorDeclarator()
10648 if (D.getDeclSpec().hasTypeSpecifier()) in CheckDestructorDeclarator()
10746 const DeclSpec &DS = D.getDeclSpec(); in CheckConversionDeclarator()
11027 Diag(D.getDeclSpec().getBeginLoc(), in CheckDeductionGuideDeclarator()
16947 const DeclSpec &DS = D.getDeclSpec(); in ActOnFriendFunctionDecl()
18300 DiagnoseFunctionSpecifiers(D.getDeclSpec()); in HandleMSProperty()
[all …]
H A DSemaTemplate.cpp1492 const DeclSpec &DS = D.getDeclSpec(); in ActOnNonTypeTemplateParameter()
10042 Diag(D.getDeclSpec().getBeginLoc(), in ActOnExplicitInstantiation()
10044 << D.getDeclSpec().getSourceRange() << D.getSourceRange(); in ActOnExplicitInstantiation()
10064 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) { in ActOnExplicitInstantiation()
10068 } else if (D.getDeclSpec().getStorageClassSpec() in ActOnExplicitInstantiation()
10082 if (D.getDeclSpec().isInlineSpecified()) in ActOnExplicitInstantiation()
10083 Diag(D.getDeclSpec().getInlineSpecLoc(), in ActOnExplicitInstantiation()
10087 << FixItHint::CreateRemoval(D.getDeclSpec().getInlineSpecLoc()); in ActOnExplicitInstantiation()
10088 if (D.getDeclSpec().hasConstexprSpecifier() && R->isFunctionType()) in ActOnExplicitInstantiation()
10091 Diag(D.getDeclSpec().getConstexprSpecLoc(), in ActOnExplicitInstantiation()
[all …]
H A DSemaTemplateVariadic.cpp857 const DeclSpec &DS = D.getDeclSpec(); in containsUnexpandedParameterPacks()
H A DSemaDeclObjC.cpp5175 const DeclSpec &DS = D.getDeclSpec(); in ActOnObjCExceptionDecl()
5189 if (DeclSpec::TSCS TSCS = D.getDeclSpec().getThreadStorageClassSpec()) in ActOnObjCExceptionDecl()
5190 Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(), in ActOnObjCExceptionDecl()
5195 DiagnoseFunctionSpecifiers(D.getDeclSpec()); in ActOnObjCExceptionDecl()
H A DDeclSpec.cpp414 return getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static || in isStaticMember()
H A DSemaLambda.cpp983 ParamInfo.getDeclSpec().getConstexprSpecifier(), in ActOnStartOfLambdaDefinition()
H A DSemaDeclAttr.cpp9231 ::checkUnusedDeclAttributes(*this, D.getDeclSpec().getAttributes()); in checkUnusedDeclAttributes()
9359 if (!PD.getDeclSpec().getAttributes().empty()) { in ProcessDeclAttributes()
9360 ProcessDeclAttributeList(S, D, PD.getDeclSpec().getAttributes(), in ProcessDeclAttributes()
H A DSemaExprCXX.cpp1840 if (D.getDeclSpec().hasAutoTypeSpec()) in ActOnCXXNew()
H A DSemaOpenMP.cpp7081 D.getDeclSpec().getConstexprSpecifier() == ConstexprSpecKind::Constexpr; in ActOnStartOfFunctionDefinitionInOpenMPDeclareVariantScope()
7083 D.getDeclSpec().getConstexprSpecifier() == ConstexprSpecKind::Consteval; in ActOnStartOfFunctionDefinitionInOpenMPDeclareVariantScope()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DDeclSpec.h1940 const DeclSpec &getDeclSpec() const { return DS; } in getDeclSpec() function
2151 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in mayBeFollowedByCXXDirectInit()
2154 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_extern && in mayBeFollowedByCXXDirectInit()
2387 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in isFunctionDeclarationContext()
2569 getDeclSpec().hasAttributes()) in hasAttributes()
2631 !getDeclSpec().isFriendSpecified(); in isFirstDeclarationOfMember()
/llvm-project-15.0.7/clang/lib/Parse/
H A DParseDecl.cpp5948 if (D.getDeclSpec().isTypeSpecPipe() && !isPipeDeclarator(D)) { in ParseDeclaratorInternal()
6170 D.getDeclSpec().getTypeSpecType() != TST_auto)) { in ParseDirectDeclarator()
6193 if (D.getDeclSpec().hasTypeSpecifier()) { in ParseDirectDeclarator()
6336 << (D.getDeclSpec().isEmpty() ? SourceRange() in ParseDirectDeclarator()
6345 << (D.getDeclSpec().isEmpty() ? SourceRange() in ParseDirectDeclarator()
6346 : D.getDeclSpec().getSourceRange()); in ParseDirectDeclarator()
6624 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_typedef && in InitCXXThisScopeForDeclaratorIfRelevant()
6626 ? !D.getDeclSpec().isFriendSpecified() in InitCXXThisScopeForDeclaratorIfRelevant()
6811 if (D.getDeclSpec().getTypeSpecType() == TST_auto) in ParseFunctionDeclarator()
6812 StartLoc = D.getDeclSpec().getTypeSpecTypeLoc(); in ParseFunctionDeclarator()
[all …]
H A DParseDeclCXX.cpp2409 DeclaratorInfo.getDeclSpec().getFriendSpecLoc()); in ParseCXXMemberDeclaratorBeforeInitializer()
2438 DeclaratorInfo.getDeclSpec().getFriendSpecLoc()); in ParseCXXMemberDeclaratorBeforeInitializer()
2906 } else if (DeclaratorInfo.getDeclSpec().getStorageClassSpec() != in ParseCXXClassMemberDeclaration()
2908 DeclaratorInfo.getDeclSpec().getStorageClassSpec() != in ParseCXXClassMemberDeclaration()
2960 DeclaratorInfo.getDeclSpec().getStorageClassSpec() == in ParseCXXClassMemberDeclaration()
3024 DeclaratorInfo.getDeclSpec().getStorageClassSpec() != in ParseCXXClassMemberDeclaration()
3984 InitCXXThisScopeForDeclaratorIfRelevant(D, D.getDeclSpec(), ThisScope); in ParseTrailingRequiresClause()
4006 D.getDeclSpec().getTypeSpecType() == TST_auto) { in ParseTrailingRequiresClause()
H A DParseCXXInlineMethods.cpp38 if (D.getDeclSpec().isFriendSpecified()) in ParseCXXInlineMethodDef()
112 !D.getDeclSpec().hasConstexprSpecifier() && in ParseCXXInlineMethodDef()
H A DParser.cpp1222 if (getLangOpts().isImplicitIntRequired() && D.getDeclSpec().isEmpty()) { in ParseFunctionDefinition()
1224 << D.getDeclSpec().getSourceRange(); in ParseFunctionDefinition()
1232 D.SetRangeBegin(D.getDeclSpec().getSourceRange().getBegin()); in ParseFunctionDefinition()
H A DParseObjc.cpp1236 attrs.getPool().takeAllFrom(D.getDeclSpec().getAttributePool()); in takeDeclAttributes()
1988 getCurScope(), FD.D.getDeclSpec().getSourceRange().getBegin(), FD.D, in ParseObjCClassInstanceVariables()
H A DParseExprCXX.cpp3282 D.SetSourceRange(D.getDeclSpec().getSourceRange()); in ParseExpressionListOrTypeId()