Home
last modified time | relevance | path

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

12

/external/llvm-project/clang/include/clang/Parse/
DRAIIObjectsForParser.h208 const ParsingDeclSpec &getDeclSpec() const { in getDeclSpec() function
209 return static_cast<const ParsingDeclSpec&>(Declarator::getDeclSpec()); in getDeclSpec()
213 return const_cast<ParsingDeclSpec&>(getDeclSpec()); in getMutableDeclSpec()
235 const ParsingDeclSpec &getDeclSpec() const { in getDeclSpec() function
236 return static_cast<const ParsingDeclSpec&>(D.getDeclSpec()); in getDeclSpec()
240 return const_cast<ParsingDeclSpec&>(getDeclSpec()); in getMutableDeclSpec()
/external/clang/lib/Parse/
DRAIIObjectsForParser.h208 const ParsingDeclSpec &getDeclSpec() const { in getDeclSpec() function
209 return static_cast<const ParsingDeclSpec&>(Declarator::getDeclSpec()); in getDeclSpec()
213 return const_cast<ParsingDeclSpec&>(getDeclSpec()); in getMutableDeclSpec()
235 const ParsingDeclSpec &getDeclSpec() const { in getDeclSpec() function
236 return static_cast<const ParsingDeclSpec&>(D.getDeclSpec()); in getDeclSpec()
240 return const_cast<ParsingDeclSpec&>(getDeclSpec()); in getMutableDeclSpec()
DParseCXXInlineMethods.cpp41 if (D.getDeclSpec().isFriendSpecified()) in ParseCXXInlineMethodDef()
115 !D.getDeclSpec().isConstexprSpecified() && in ParseCXXInlineMethodDef()
178 if (D.getDeclSpec().isFriendSpecified()) { in ParseCXXInlineMethodDef()
DParseDecl.cpp2024 bool TypeContainsAuto = D.getDeclSpec().containsPlaceholderType(); in ParseDeclarationAfterDeclaratorAndAttributes()
3719 FD.D.getDeclSpec().getSourceRange().getBegin(), in ParseStructUnionBody()
5042 if (D.getDeclSpec().isTypeSpecPipe() && !isPipeDeclerator(D)) { in ParseDeclaratorInternal()
5249 D.getDeclSpec().getTypeSpecType() != TST_auto)) { in ParseDirectDeclarator()
5271 if (D.getDeclSpec().hasTypeSpecifier()) in ParseDirectDeclarator()
5373 << (D.getDeclSpec().isEmpty() ? SourceRange() in ParseDirectDeclarator()
5374 : D.getDeclSpec().getSourceRange()); in ParseDirectDeclarator()
5663 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_typedef && in ParseFunctionDeclarator()
5665 ? !D.getDeclSpec().isFriendSpecified() in ParseFunctionDeclarator()
5672 (D.getDeclSpec().isConstexprSpecified() && in ParseFunctionDeclarator()
[all …]
DParseDeclCXX.cpp2112 DeclaratorInfo.getDeclSpec().getFriendSpecLoc()); in ParseCXXMemberDeclaratorBeforeInitializer()
2136 DeclaratorInfo.getDeclSpec().getFriendSpecLoc()); in ParseCXXMemberDeclaratorBeforeInitializer()
2567 } else if (DeclaratorInfo.getDeclSpec().getStorageClassSpec() != in ParseCXXClassMemberDeclaration()
2569 DeclaratorInfo.getDeclSpec().getStorageClassSpec() != in ParseCXXClassMemberDeclaration()
2618 DeclaratorInfo.getDeclSpec().getStorageClassSpec() == in ParseCXXClassMemberDeclaration()
2675 DeclaratorInfo.getDeclSpec().getStorageClassSpec() != in ParseCXXClassMemberDeclaration()
DParser.cpp984 if (getLangOpts().ImplicitInt && D.getDeclSpec().isEmpty()) { in ParseFunctionDefinition()
992 D.SetRangeBegin(D.getDeclSpec().getSourceRange().getBegin()); in ParseFunctionDefinition()
DParseObjc.cpp1238 attrs.getPool().takeAllFrom(D.getDeclSpec().getAttributePool()); in takeDeclAttributes()
1241 takeDeclAttributes(attrs, D.getDeclSpec().getAttributes().getList()); in takeDeclAttributes()
1985 getCurScope(), FD.D.getDeclSpec().getSourceRange().getBegin(), FD.D, in ParseObjCClassInstanceVariables()
/external/clang/lib/Sema/
DSemaDecl.cpp4926 Diag(D.getDeclSpec().getLocStart(), in HandleDeclarator()
4928 << D.getDeclSpec().getSourceRange() << D.getSourceRange(); in HandleDeclarator()
4947 bool EnteringContext = !D.getDeclSpec().isFriendSpecified(); in HandleDeclarator()
4973 if (!D.getDeclSpec().isFriendSpecified()) { in HandleDeclarator()
5000 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in HandleDeclarator()
5022 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in HandleDeclarator()
5025 (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_extern || in HandleDeclarator()
5031 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_static) in HandleDeclarator()
5086 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_typedef) in HandleDeclarator()
5094 if (D.getDeclSpec().isConceptSpecified()) { in HandleDeclarator()
[all …]
DSemaType.cpp50 D.getDeclSpec().hasTypeSpecifier()) in isOmittedBlockReturnType()
232 return const_cast<DeclSpec&>(declarator.getDeclSpec()); in getMutableDeclSpec()
786 const DeclSpec &DS = declarator.getDeclSpec(); in checkOmittedBlockReturnType()
1250 const DeclSpec &DS = declarator.getDeclSpec(); in ConvertDeclSpecToType()
2766 D.getDeclSpec().getTypeQualifiers(), in diagnoseRedundantReturnTypeQualifiers()
2768 D.getDeclSpec().getConstSpecLoc(), in diagnoseRedundantReturnTypeQualifiers()
2769 D.getDeclSpec().getVolatileSpecLoc(), in diagnoseRedundantReturnTypeQualifiers()
2770 D.getDeclSpec().getRestrictSpecLoc(), in diagnoseRedundantReturnTypeQualifiers()
2771 D.getDeclSpec().getAtomicSpecLoc(), in diagnoseRedundantReturnTypeQualifiers()
2772 D.getDeclSpec().getUnalignedSpecLoc()); in diagnoseRedundantReturnTypeQualifiers()
[all …]
DSemaDeclCXX.cpp2009 const DeclSpec &DS = D.getDeclSpec(); in ActOnCXXMemberDeclarator()
2105 if (D.getDeclSpec().getTypeQualifiers() & DeclSpec::TQ_const) in ActOnCXXMemberDeclarator()
2185 getMSPropertyAttr(D.getDeclSpec().getAttributes().getList()); in ActOnCXXMemberDeclarator()
6808 bool isVirtual = D.getDeclSpec().isVirtualSpecified(); in CheckConstructorDeclarator()
6818 << "virtual" << SourceRange(D.getDeclSpec().getVirtualSpecLoc()) in CheckConstructorDeclarator()
6825 << "static" << SourceRange(D.getDeclSpec().getStorageClassSpecLoc()) in CheckConstructorDeclarator()
6831 if (unsigned TypeQuals = D.getDeclSpec().getTypeQualifiers()) { in CheckConstructorDeclarator()
6834 D.getDeclSpec().getConstSpecLoc(), D.getDeclSpec().getVolatileSpecLoc(), in CheckConstructorDeclarator()
6835 D.getDeclSpec().getRestrictSpecLoc(), in CheckConstructorDeclarator()
6836 D.getDeclSpec().getAtomicSpecLoc()); in CheckConstructorDeclarator()
[all …]
DSemaTemplate.cpp7733 Diag(D.getDeclSpec().getLocStart(), in ActOnExplicitInstantiation()
7735 << D.getDeclSpec().getSourceRange() in ActOnExplicitInstantiation()
7756 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) { in ActOnExplicitInstantiation()
7760 } else if (D.getDeclSpec().getStorageClassSpec() in ActOnExplicitInstantiation()
7764 << FixItHint::CreateRemoval(D.getDeclSpec().getStorageClassSpecLoc()); in ActOnExplicitInstantiation()
7774 if (D.getDeclSpec().isInlineSpecified()) in ActOnExplicitInstantiation()
7775 Diag(D.getDeclSpec().getInlineSpecLoc(), in ActOnExplicitInstantiation()
7779 << FixItHint::CreateRemoval(D.getDeclSpec().getInlineSpecLoc()); in ActOnExplicitInstantiation()
7780 if (D.getDeclSpec().isConstexprSpecified() && R->isFunctionType()) in ActOnExplicitInstantiation()
7783 Diag(D.getDeclSpec().getConstexprSpecLoc(), in ActOnExplicitInstantiation()
[all …]
DSemaTemplateVariadic.cpp700 const DeclSpec &DS = D.getDeclSpec(); in containsUnexpandedParameterPacks()
DSemaDeclObjC.cpp4604 const DeclSpec &DS = D.getDeclSpec(); in ActOnObjCExceptionDecl()
4618 if (DeclSpec::TSCS TSCS = D.getDeclSpec().getThreadStorageClassSpec()) in ActOnObjCExceptionDecl()
4619 Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(), in ActOnObjCExceptionDecl()
4624 DiagnoseFunctionSpecifiers(D.getDeclSpec()); in ActOnObjCExceptionDecl()
DDeclSpec.cpp343 return getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static || in isStaticMember()
/external/llvm-project/clang/lib/Sema/
DSemaDecl.cpp5692 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()
[all …]
DSemaType.cpp54 D.getDeclSpec().hasTypeSpecifier()) in isOmittedBlockReturnType()
332 return const_cast<DeclSpec&>(declarator.getDeclSpec()); in getMutableDeclSpec()
827 const DeclSpec &DS = declarator.getDeclSpec(); in checkOmittedBlockReturnType()
3162 D.getDeclSpec().getTypeQualifiers(), in diagnoseRedundantReturnTypeQualifiers()
3164 D.getDeclSpec().getConstSpecLoc(), in diagnoseRedundantReturnTypeQualifiers()
3165 D.getDeclSpec().getVolatileSpecLoc(), in diagnoseRedundantReturnTypeQualifiers()
3166 D.getDeclSpec().getRestrictSpecLoc(), in diagnoseRedundantReturnTypeQualifiers()
3167 D.getDeclSpec().getAtomicSpecLoc(), in diagnoseRedundantReturnTypeQualifiers()
3168 D.getDeclSpec().getUnalignedSpecLoc()); in diagnoseRedundantReturnTypeQualifiers()
3191 /*KeyLoc=*/D.getDeclSpec().getTypeSpecTypeLoc(), in InventTemplateParameter()
[all …]
DSemaDeclCXX.cpp752 auto &DS = D.getDeclSpec(); in ActOnDecompositionDeclarator()
3205 const DeclSpec &DS = D.getDeclSpec(); in ActOnCXXMemberDeclarator()
3221 getMSPropertyAttr(D.getDeclSpec().getAttributes()); in ActOnCXXMemberDeclarator()
3306 if (D.getDeclSpec().getTypeQualifiers() & DeclSpec::TQ_const) in ActOnCXXMemberDeclarator()
10175 bool isVirtual = D.getDeclSpec().isVirtualSpecified(); in CheckConstructorDeclarator()
10185 << "virtual" << SourceRange(D.getDeclSpec().getVirtualSpecLoc()) in CheckConstructorDeclarator()
10192 << "static" << SourceRange(D.getDeclSpec().getStorageClassSpecLoc()) in CheckConstructorDeclarator()
10198 if (unsigned TypeQuals = D.getDeclSpec().getTypeQualifiers()) { in CheckConstructorDeclarator()
10201 D.getDeclSpec().getConstSpecLoc(), D.getDeclSpec().getVolatileSpecLoc(), in CheckConstructorDeclarator()
10202 D.getDeclSpec().getRestrictSpecLoc(), in CheckConstructorDeclarator()
[all …]
DSemaTemplate.cpp1469 const DeclSpec &DS = D.getDeclSpec(); in ActOnNonTypeTemplateParameter()
9946 Diag(D.getDeclSpec().getBeginLoc(), in ActOnExplicitInstantiation()
9948 << D.getDeclSpec().getSourceRange() << D.getSourceRange(); in ActOnExplicitInstantiation()
9968 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) { in ActOnExplicitInstantiation()
9972 } else if (D.getDeclSpec().getStorageClassSpec() in ActOnExplicitInstantiation()
9976 << FixItHint::CreateRemoval(D.getDeclSpec().getStorageClassSpecLoc()); in ActOnExplicitInstantiation()
9986 if (D.getDeclSpec().isInlineSpecified()) in ActOnExplicitInstantiation()
9987 Diag(D.getDeclSpec().getInlineSpecLoc(), in ActOnExplicitInstantiation()
9991 << FixItHint::CreateRemoval(D.getDeclSpec().getInlineSpecLoc()); in ActOnExplicitInstantiation()
9992 if (D.getDeclSpec().hasConstexprSpecifier() && R->isFunctionType()) in ActOnExplicitInstantiation()
[all …]
DSemaTemplateVariadic.cpp860 const DeclSpec &DS = D.getDeclSpec(); in containsUnexpandedParameterPacks()
DSemaDeclObjC.cpp5162 const DeclSpec &DS = D.getDeclSpec(); in ActOnObjCExceptionDecl()
5176 if (DeclSpec::TSCS TSCS = D.getDeclSpec().getThreadStorageClassSpec()) in ActOnObjCExceptionDecl()
5177 Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(), in ActOnObjCExceptionDecl()
5182 DiagnoseFunctionSpecifiers(D.getDeclSpec()); in ActOnObjCExceptionDecl()
/external/llvm-project/clang/include/clang/Sema/
DDeclSpec.h1907 const DeclSpec &getDeclSpec() const { return DS; } in getDeclSpec() function
2115 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in mayBeFollowedByCXXDirectInit()
2118 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_extern && in mayBeFollowedByCXXDirectInit()
2350 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in isFunctionDeclarationContext()
2525 if (!getAttributes().empty() || getDeclSpec().hasAttributes()) in hasAttributes()
2587 !getDeclSpec().isFriendSpecified(); in isFirstDeclarationOfMember()
/external/llvm-project/clang/lib/Parse/
DParseDecl.cpp4255 FD.D.getDeclSpec().getSourceRange().getBegin(), in ParseStructUnionBody()
5705 if (D.getDeclSpec().isTypeSpecPipe() && !isPipeDeclerator(D)) { in ParseDeclaratorInternal()
5925 D.getDeclSpec().getTypeSpecType() != TST_auto)) { in ParseDirectDeclarator()
5948 if (D.getDeclSpec().hasTypeSpecifier()) { in ParseDirectDeclarator()
6091 << (D.getDeclSpec().isEmpty() ? SourceRange() in ParseDirectDeclarator()
6092 : D.getDeclSpec().getSourceRange()); in ParseDirectDeclarator()
6100 << (D.getDeclSpec().isEmpty() ? SourceRange() in ParseDirectDeclarator()
6101 : D.getDeclSpec().getSourceRange()); in ParseDirectDeclarator()
6375 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_typedef && in InitCXXThisScopeForDeclaratorIfRelevant()
6377 ? !D.getDeclSpec().isFriendSpecified() in InitCXXThisScopeForDeclaratorIfRelevant()
[all …]
DParseDeclCXX.cpp2340 DeclaratorInfo.getDeclSpec().getFriendSpecLoc()); in ParseCXXMemberDeclaratorBeforeInitializer()
2368 DeclaratorInfo.getDeclSpec().getFriendSpecLoc()); in ParseCXXMemberDeclaratorBeforeInitializer()
2814 } else if (DeclaratorInfo.getDeclSpec().getStorageClassSpec() != in ParseCXXClassMemberDeclaration()
2816 DeclaratorInfo.getDeclSpec().getStorageClassSpec() != in ParseCXXClassMemberDeclaration()
2869 DeclaratorInfo.getDeclSpec().getStorageClassSpec() == in ParseCXXClassMemberDeclaration()
2925 DeclaratorInfo.getDeclSpec().getStorageClassSpec() != in ParseCXXClassMemberDeclaration()
3874 InitCXXThisScopeForDeclaratorIfRelevant(D, D.getDeclSpec(), ThisScope); in ParseTrailingRequiresClause()
3896 D.getDeclSpec().getTypeSpecType() == TST_auto) { in ParseTrailingRequiresClause()
DParseCXXInlineMethods.cpp38 if (D.getDeclSpec().isFriendSpecified()) in ParseCXXInlineMethodDef()
112 !D.getDeclSpec().hasConstexprSpecifier() && in ParseCXXInlineMethodDef()
DParser.cpp1179 if (getLangOpts().ImplicitInt && D.getDeclSpec().isEmpty()) { in ParseFunctionDefinition()
1187 D.SetRangeBegin(D.getDeclSpec().getSourceRange().getBegin()); in ParseFunctionDefinition()

12