Home
last modified time | relevance | path

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

/freebsd-14.2/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-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaDecl.cpp6782 DiagnoseFunctionSpecifiers(D.getDeclSpec()); in ActOnTypedefDeclarator()
6784 if (D.getDeclSpec().isInlineSpecified()) in ActOnTypedefDeclarator()
6787 if (D.getDeclSpec().hasConstexprSpecifier()) in ActOnTypedefDeclarator()
7846 if (D.getDeclSpec().isInlineSpecified()) { in ActOnVariableDeclarator()
9306 (D.getDeclSpec().isTypeRep() && in CreateNewFunctionDecl()
10377 if (D.getDeclSpec().isNoreturnSpecified()) in ActOnFunctionDeclarator()
10451 CheckMain(NewFD, D.getDeclSpec()); in ActOnFunctionDeclarator()
10583 CheckMain(NewFD, D.getDeclSpec()); in ActOnFunctionDeclarator()
15105 const DeclSpec &DS = D.getDeclSpec(); in ActOnParamDeclarator()
15883 if (D.getDeclSpec().hasAutoTypeSpec()) { in canDelayFunctionBody()
[all …]
H A DSemaType.cpp61 D.getDeclSpec().hasTypeSpecifier()) in isOmittedBlockReturnType()
838 const DeclSpec &DS = declarator.getDeclSpec(); in checkOmittedBlockReturnType()
3688 if (D.getDeclSpec().isFriendSpecified()) in GetDeclSpecTypeForDeclarator()
5051 D.getDeclSpec().getEndLoc(), in GetFullTypeForDeclarator()
5254 if (D.getDeclSpec().hasAutoTypeSpec() && in GetFullTypeForDeclarator()
5257 S.Diag(D.getDeclSpec().getTypeSpecTypeLoc(), in GetFullTypeForDeclarator()
5265 S.Diag(D.getDeclSpec().getTypeSpecTypeLoc(), in GetFullTypeForDeclarator()
5279 S.Diag(D.getDeclSpec().getBeginLoc(), in GetFullTypeForDeclarator()
5291 S.Diag(D.getDeclSpec().getTypeSpecTypeLoc(), in GetFullTypeForDeclarator()
5293 << T << D.getDeclSpec().getSourceRange(); in GetFullTypeForDeclarator()
[all …]
H A DSemaLambda.cpp882 (ParamInfo.getDeclSpec().getStorageClassSpec() == in getLambdaType()
884 ParamInfo.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static) && in getLambdaType()
887 ParamInfo.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static; in getLambdaType()
1372 ParamInfo.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static; in ActOnStartOfLambdaDefinition()
1377 ParamInfo.getDeclSpec().getConstexprSpecifier(), in ActOnStartOfLambdaDefinition()
H A DSemaDeclCXX.cpp780 auto &DS = D.getDeclSpec(); in ActOnDecompositionDeclarator()
3444 const DeclSpec &DS = D.getDeclSpec(); in ActOnCXXMemberDeclarator()
10865 D.getDeclSpec().getConstSpecLoc(), D.getDeclSpec().getVolatileSpecLoc(), in CheckConstructorDeclarator()
10866 D.getDeclSpec().getRestrictSpecLoc(), in CheckConstructorDeclarator()
10867 D.getDeclSpec().getAtomicSpecLoc()); in CheckConstructorDeclarator()
11033 if (D.getDeclSpec().hasTypeSpecifier()) in CheckDestructorDeclarator()
11131 const DeclSpec &DS = D.getDeclSpec(); in CheckConversionDeclarator()
11393 if (D.getDeclSpec().isVirtualSpecified()) { in CheckExplicitObjectMemberFunction()
11520 Diag(D.getDeclSpec().getBeginLoc(), in CheckDeductionGuideDeclarator()
17834 const DeclSpec &DS = D.getDeclSpec(); in ActOnFriendFunctionDecl()
[all …]
H A DSemaTemplate.cpp1516 const DeclSpec &DS = D.getDeclSpec(); in ActOnNonTypeTemplateParameter()
10600 Diag(D.getDeclSpec().getBeginLoc(), in ActOnExplicitInstantiation()
10602 << D.getDeclSpec().getSourceRange() << D.getSourceRange(); in ActOnExplicitInstantiation()
10622 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) { in ActOnExplicitInstantiation()
10626 } else if (D.getDeclSpec().getStorageClassSpec() in ActOnExplicitInstantiation()
10640 if (D.getDeclSpec().isInlineSpecified()) in ActOnExplicitInstantiation()
10641 Diag(D.getDeclSpec().getInlineSpecLoc(), in ActOnExplicitInstantiation()
10645 << FixItHint::CreateRemoval(D.getDeclSpec().getInlineSpecLoc()); in ActOnExplicitInstantiation()
10646 if (D.getDeclSpec().hasConstexprSpecifier() && R->isFunctionType()) in ActOnExplicitInstantiation()
10649 Diag(D.getDeclSpec().getConstexprSpecLoc(), in ActOnExplicitInstantiation()
[all …]
H A DSemaTemplateVariadic.cpp866 const DeclSpec &DS = D.getDeclSpec(); in containsUnexpandedParameterPacks()
H A DSemaDeclObjC.cpp5187 const DeclSpec &DS = D.getDeclSpec(); in ActOnObjCExceptionDecl()
5201 if (DeclSpec::TSCS TSCS = D.getDeclSpec().getThreadStorageClassSpec()) in ActOnObjCExceptionDecl()
5202 Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(), in ActOnObjCExceptionDecl()
5207 DiagnoseFunctionSpecifiers(D.getDeclSpec()); in ActOnObjCExceptionDecl()
H A DDeclSpec.cpp417 return getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static || in isStaticMember()
H A DSema.cpp2756 !D.getDeclSpec().isFriendSpecified()); in isDeclaratorFunctionLike()
H A DSemaDeclAttr.cpp9989 ::checkUnusedDeclAttributes(*this, D.getDeclSpec().getAttributes()); in checkUnusedDeclAttributes()
10115 if (!PD.getDeclSpec().getAttributes().empty()) { in ProcessDeclAttributes()
10116 ProcessDeclAttributeList(S, D, PD.getDeclSpec().getAttributes(), in ProcessDeclAttributes()
H A DSemaExprCXX.cpp1887 if (D.getDeclSpec().hasAutoTypeSpec()) in ActOnCXXNew()
H A DSemaOpenMP.cpp7311 D.getDeclSpec().getConstexprSpecifier() == ConstexprSpecKind::Constexpr; in ActOnStartOfFunctionDefinitionInOpenMPDeclareVariantScope()
7313 D.getDeclSpec().getConstexprSpecifier() == ConstexprSpecKind::Consteval; in ActOnStartOfFunctionDefinitionInOpenMPDeclareVariantScope()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Sema/
H A DDeclSpec.h1986 const DeclSpec &getDeclSpec() const { return DS; } in getDeclSpec() function
2197 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in mayBeFollowedByCXXDirectInit()
2200 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_extern && in mayBeFollowedByCXXDirectInit()
2433 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in isFunctionDeclarationContext()
2615 getDeclSpec().hasAttributes()) in hasAttributes()
2669 !getDeclSpec().isFriendSpecified(); in isFirstDeclarationOfMember()
/freebsd-14.2/contrib/llvm-project/clang/lib/Parse/
H A DParseDecl.cpp6305 if (D.getDeclSpec().isTypeSpecPipe() && !isPipeDeclarator(D)) { in ParseDeclaratorInternal()
6527 D.getDeclSpec().getTypeSpecType() != TST_auto)) { in ParseDirectDeclarator()
6550 if (D.getDeclSpec().hasTypeSpecifier()) { in ParseDirectDeclarator()
6694 << (D.getDeclSpec().isEmpty() ? SourceRange() in ParseDirectDeclarator()
6703 << (D.getDeclSpec().isEmpty() ? SourceRange() in ParseDirectDeclarator()
6704 : D.getDeclSpec().getSourceRange()); in ParseDirectDeclarator()
7010 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_typedef && in InitCXXThisScopeForDeclaratorIfRelevant()
7012 ? !D.getDeclSpec().isFriendSpecified() in InitCXXThisScopeForDeclaratorIfRelevant()
7196 if (D.getDeclSpec().getTypeSpecType() == TST_auto) in ParseFunctionDeclarator()
7197 StartLoc = D.getDeclSpec().getTypeSpecTypeLoc(); in ParseFunctionDeclarator()
[all …]
H A DParseDeclCXX.cpp2539 DeclaratorInfo.getDeclSpec().getFriendSpecLoc()); in ParseCXXMemberDeclaratorBeforeInitializer()
2568 DeclaratorInfo.getDeclSpec().getFriendSpecLoc()); in ParseCXXMemberDeclaratorBeforeInitializer()
3042 } else if (DeclaratorInfo.getDeclSpec().getStorageClassSpec() != in ParseCXXClassMemberDeclaration()
3044 DeclaratorInfo.getDeclSpec().getStorageClassSpec() != in ParseCXXClassMemberDeclaration()
3098 DeclaratorInfo.getDeclSpec().getStorageClassSpec() == in ParseCXXClassMemberDeclaration()
3162 DeclaratorInfo.getDeclSpec().getStorageClassSpec() != in ParseCXXClassMemberDeclaration()
4140 InitCXXThisScopeForDeclaratorIfRelevant(D, D.getDeclSpec(), ThisScope); in ParseTrailingRequiresClause()
4162 D.getDeclSpec().getTypeSpecType() == TST_auto) { in ParseTrailingRequiresClause()
H A DParseCXXInlineMethods.cpp40 if (D.getDeclSpec().isFriendSpecified()) in ParseCXXInlineMethodDef()
114 !D.getDeclSpec().hasConstexprSpecifier() && in ParseCXXInlineMethodDef()
H A DParser.cpp1299 if (getLangOpts().isImplicitIntRequired() && D.getDeclSpec().isEmpty()) { in ParseFunctionDefinition()
1301 << D.getDeclSpec().getSourceRange(); in ParseFunctionDefinition()
1309 D.SetRangeBegin(D.getDeclSpec().getSourceRange().getBegin()); in ParseFunctionDefinition()
H A DParseObjc.cpp1281 attrs.getPool().takeAllFrom(D.getDeclSpec().getAttributePool()); in takeDeclAttributes()
2033 getCurScope(), FD.D.getDeclSpec().getSourceRange().getBegin(), FD.D, in ParseObjCClassInstanceVariables()
H A DParseExprCXX.cpp3361 D.SetSourceRange(D.getDeclSpec().getSourceRange()); in ParseExpressionListOrTypeId()