Lines Matching refs:getDeclSpec

5692       Diag(D.getDeclSpec().getBeginLoc(), diag::err_declarator_need_ident)  in HandleDeclarator()
5693 << D.getDeclSpec().getSourceRange() << D.getSourceRange(); in HandleDeclarator()
5712 bool EnteringContext = !D.getDeclSpec().isFriendSpecified(); in HandleDeclarator()
5738 if (!D.getDeclSpec().isFriendSpecified()) { in HandleDeclarator()
5781 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in HandleDeclarator()
5784 (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_extern || in HandleDeclarator()
5790 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_static) in HandleDeclarator()
5851 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_typedef && in HandleDeclarator()
5863 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) { in HandleDeclarator()
6103 DiagnoseFunctionSpecifiers(D.getDeclSpec()); in ActOnTypedefDeclarator()
6105 if (D.getDeclSpec().isInlineSpecified()) in ActOnTypedefDeclarator()
6106 Diag(D.getDeclSpec().getInlineSpecLoc(), diag::err_inline_non_function) in ActOnTypedefDeclarator()
6108 if (D.getDeclSpec().hasConstexprSpecifier()) in ActOnTypedefDeclarator()
6109 Diag(D.getDeclSpec().getConstexprSpecLoc(), diag::err_invalid_constexpr) in ActOnTypedefDeclarator()
6110 << 1 << static_cast<int>(D.getDeclSpec().getConstexprSpecifier()); in ActOnTypedefDeclarator()
6673 if (PD.getDeclSpec().getAttributes().hasAttribute(Kind)) in hasParsedAttr()
6784 DeclSpec::TSCS TSC = D.getDeclSpec().getThreadStorageClassSpec(); in diagnoseOpenCLTypes()
6787 Se.Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(), in diagnoseOpenCLTypes()
6843 DeclSpec::SCS SCSpec = D.getDeclSpec().getStorageClassSpec(); in ActOnVariableDeclarator()
6844 StorageClass SC = StorageClassSpecToVarDeclStorageClass(D.getDeclSpec()); in ActOnVariableDeclarator()
6867 D.getDeclSpec().getStorageClassSpecLoc())) { in ActOnVariableDeclarator()
6871 Diag(D.getDeclSpec().getStorageClassSpecLoc(), in ActOnVariableDeclarator()
6874 << FixItHint::CreateRemoval(D.getDeclSpec().getStorageClassSpecLoc()); in ActOnVariableDeclarator()
6877 DiagnoseFunctionSpecifiers(D.getDeclSpec()); in ActOnVariableDeclarator()
6925 Diag(D.getDeclSpec().getStorageClassSpecLoc(), in ActOnVariableDeclarator()
6927 << FixItHint::CreateRemoval(D.getDeclSpec().getStorageClassSpecLoc()); in ActOnVariableDeclarator()
6937 Diag(D.getDeclSpec().getStorageClassSpecLoc(), in ActOnVariableDeclarator()
6939 << FixItHint::CreateRemoval(D.getDeclSpec().getStorageClassSpecLoc()); in ActOnVariableDeclarator()
6992 D.getDeclSpec().getBeginLoc(), D.getIdentifierLoc(), in ActOnVariableDeclarator()
7091 if (D.getDeclSpec().isInlineSpecified()) { in ActOnVariableDeclarator()
7093 Diag(D.getDeclSpec().getInlineSpecLoc(), diag::err_inline_non_function) in ActOnVariableDeclarator()
7097 Diag(D.getDeclSpec().getInlineSpecLoc(), in ActOnVariableDeclarator()
7099 << FixItHint::CreateRemoval(D.getDeclSpec().getInlineSpecLoc()); in ActOnVariableDeclarator()
7101 Diag(D.getDeclSpec().getInlineSpecLoc(), in ActOnVariableDeclarator()
7123 if (DeclSpec::TSCS TSCS = D.getDeclSpec().getThreadStorageClassSpec()) { in ActOnVariableDeclarator()
7134 Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(), in ActOnVariableDeclarator()
7149 Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(), in ActOnVariableDeclarator()
7155 switch (D.getDeclSpec().getConstexprSpecifier()) { in ActOnVariableDeclarator()
7160 Diag(D.getDeclSpec().getConstexprSpecLoc(), in ActOnVariableDeclarator()
7162 << static_cast<int>(D.getDeclSpec().getConstexprSpecifier()); in ActOnVariableDeclarator()
7179 Diag(D.getDeclSpec().getConstexprSpecLoc(), in ActOnVariableDeclarator()
7183 Context, D.getDeclSpec().getConstexprSpecLoc(), in ActOnVariableDeclarator()
7201 Diag(D.getDeclSpec().getStorageClassSpecLoc(), in ActOnVariableDeclarator()
7207 if (D.getDeclSpec().isModulePrivateSpecified()) { in ActOnVariableDeclarator()
7212 D.getDeclSpec().getModulePrivateSpecLoc()); in ActOnVariableDeclarator()
7216 << FixItHint::CreateRemoval(D.getDeclSpec().getModulePrivateSpecLoc()); in ActOnVariableDeclarator()
7220 << SourceRange(D.getDeclSpec().getModulePrivateSpecLoc()) in ActOnVariableDeclarator()
7222 D.getDeclSpec().getModulePrivateSpecLoc()); in ActOnVariableDeclarator()
7248 Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(), in ActOnVariableDeclarator()
8378 switch (D.getDeclSpec().getStorageClassSpec()) { in getFunctionStorageClass()
8383 SemaRef.Diag(D.getDeclSpec().getStorageClassSpecLoc(), in getFunctionStorageClass()
8390 if (D.getDeclSpec().isExternInLinkageSpec()) in getFunctionStorageClass()
8400 SemaRef.Diag(D.getDeclSpec().getStorageClassSpecLoc(), in getFunctionStorageClass()
8422 bool isInline = D.getDeclSpec().isInlineSpecified(); in CreateNewFunctionDecl()
8445 ExplicitSpecifier ExplicitSpecifier = D.getDeclSpec().getExplicitSpecifier(); in CreateNewFunctionDecl()
8447 ConstexprSpecKind ConstexprKind = D.getDeclSpec().getConstexprSpecifier(); in CreateNewFunctionDecl()
8449 SemaRef.Diag(D.getDeclSpec().getConstexprSpecLoc(), in CreateNewFunctionDecl()
8545 << SourceRange(D.getDeclSpec().getTypeSpecTypeLoc()) in CreateNewFunctionDecl()
8559 SemaRef.getLangOpts().CPlusPlus && D.getDeclSpec().isFriendSpecified(); in CreateNewFunctionDecl()
8884 if (DeclSpec::TSCS TSCS = D.getDeclSpec().getThreadStorageClassSpec()) in ActOnFunctionDeclarator()
8885 Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(), in ActOnFunctionDeclarator()
8923 bool isInline = D.getDeclSpec().isInlineSpecified(); in ActOnFunctionDeclarator()
8924 bool isVirtual = D.getDeclSpec().isVirtualSpecified(); in ActOnFunctionDeclarator()
8925 bool hasExplicit = D.getDeclSpec().hasExplicitSpecifier(); in ActOnFunctionDeclarator()
8926 isFriend = D.getDeclSpec().isFriendSpecified(); in ActOnFunctionDeclarator()
8945 Diag(D.getDeclSpec().getVirtualSpecLoc(), diag::err_virtual_in_union); in ActOnFunctionDeclarator()
8959 D.getDeclSpec().getBeginLoc(), D.getIdentifierLoc(), in ActOnFunctionDeclarator()
9057 Diag(D.getDeclSpec().getVirtualSpecLoc(), in ActOnFunctionDeclarator()
9061 Diag(D.getDeclSpec().getVirtualSpecLoc(), in ActOnFunctionDeclarator()
9063 << FixItHint::CreateRemoval(D.getDeclSpec().getVirtualSpecLoc()); in ActOnFunctionDeclarator()
9067 Diag(D.getDeclSpec().getVirtualSpecLoc(), in ActOnFunctionDeclarator()
9069 << FixItHint::CreateRemoval(D.getDeclSpec().getVirtualSpecLoc()); in ActOnFunctionDeclarator()
9077 Diag(D.getDeclSpec().getVirtualSpecLoc(), diag::err_auto_fn_virtual); in ActOnFunctionDeclarator()
9104 Diag(D.getDeclSpec().getInlineSpecLoc(), in ActOnFunctionDeclarator()
9106 << FixItHint::CreateRemoval(D.getDeclSpec().getInlineSpecLoc()); in ActOnFunctionDeclarator()
9118 Diag(D.getDeclSpec().getExplicitSpecLoc(), in ActOnFunctionDeclarator()
9120 << FixItHint::CreateRemoval(D.getDeclSpec().getExplicitSpecRange()); in ActOnFunctionDeclarator()
9125 Diag(D.getDeclSpec().getExplicitSpecLoc(), in ActOnFunctionDeclarator()
9127 << FixItHint::CreateRemoval(D.getDeclSpec().getExplicitSpecRange()); in ActOnFunctionDeclarator()
9131 ConstexprSpecKind ConstexprKind = D.getDeclSpec().getConstexprSpecifier(); in ActOnFunctionDeclarator()
9143 Diag(D.getDeclSpec().getConstexprSpecLoc(), diag::err_constexpr_dtor) in ActOnFunctionDeclarator()
9157 Diag(D.getDeclSpec().getConstexprSpecLoc(), in ActOnFunctionDeclarator()
9165 if (D.getDeclSpec().isModulePrivateSpecified()) { in ActOnFunctionDeclarator()
9168 = D.getDeclSpec().getModulePrivateSpecLoc(); in ActOnFunctionDeclarator()
9225 Diag(D.getDeclSpec().getStorageClassSpecLoc(), in ActOnFunctionDeclarator()
9230 << FixItHint::CreateRemoval(D.getDeclSpec().getStorageClassSpecLoc()); in ActOnFunctionDeclarator()
9354 if (D.getDeclSpec().isNoreturnSpecified()) in ActOnFunctionDeclarator()
9356 D.getDeclSpec().getNoreturnSpecLoc(), in ActOnFunctionDeclarator()
9414 CheckMain(NewFD, D.getDeclSpec()); in ActOnFunctionDeclarator()
9458 if (D.getDeclSpec().isInlineSpecified() && in ActOnFunctionDeclarator()
9461 Diag(D.getDeclSpec().getInlineSpecLoc(), in ActOnFunctionDeclarator()
9488 D.getDeclSpec().isFriendSpecified()) && in ActOnFunctionDeclarator()
9550 D.getDeclSpec().getStorageClassSpecLoc()); in ActOnFunctionDeclarator()
9556 D.getDeclSpec().getStorageClassSpecLoc()); in ActOnFunctionDeclarator()
9566 CheckMain(NewFD, D.getDeclSpec()); in ActOnFunctionDeclarator()
9608 D.getDeclSpec().isFriendSpecified() in ActOnFunctionDeclarator()
13524 const DeclSpec &DS = D.getDeclSpec(); in ActOnParamDeclarator()
13557 << 0 << static_cast<int>(D.getDeclSpec().getConstexprSpecifier()); in ActOnParamDeclarator()
13613 if (D.getDeclSpec().isModulePrivateSpecified()) in ActOnParamDeclarator()
13615 << 1 << New << SourceRange(D.getDeclSpec().getModulePrivateSpecLoc()) in ActOnParamDeclarator()
13616 << FixItHint::CreateRemoval(D.getDeclSpec().getModulePrivateSpecLoc()); in ActOnParamDeclarator()
14190 if (D.getDeclSpec().hasConstexprSpecifier()) in canDelayFunctionBody()
14195 if (D.getDeclSpec().hasAutoTypeSpec()) { in canDelayFunctionBody()
15015 if (D.getDeclSpec().isModulePrivateSpecified()) { in ParseTypedefDecl()
15019 << SourceRange(D.getDeclSpec().getModulePrivateSpecLoc()) in ParseTypedefDecl()
15021 D.getDeclSpec().getModulePrivateSpecLoc()); in ParseTypedefDecl()
15032 switch (D.getDeclSpec().getTypeSpecType()) { in ParseTypedefDecl()
15038 TagDecl *tagFromDeclSpec = cast<TagDecl>(D.getDeclSpec().getRepAsDecl()); in ParseTypedefDecl()
16558 DiagnoseFunctionSpecifiers(D.getDeclSpec()); in HandleField()
16560 if (D.getDeclSpec().isInlineSpecified()) in HandleField()
16561 Diag(D.getDeclSpec().getInlineSpecLoc(), diag::err_inline_non_function) in HandleField()
16563 if (DeclSpec::TSCS TSCS = D.getDeclSpec().getThreadStorageClassSpec()) in HandleField()
16564 Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(), in HandleField()
16601 = (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_mutable); in HandleField()
16610 if (D.getDeclSpec().isModulePrivateSpecified()) in HandleField()
16740 if (D && D->getDeclSpec().getStorageClassSpecLoc().isValid()) in CheckFieldDecl()
16741 ErrLoc = D->getDeclSpec().getStorageClassSpecLoc(); in CheckFieldDecl()
16992 if (D.getDeclSpec().isModulePrivateSpecified()) in ActOnIvar()