Home
last modified time | relevance | path

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

/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()
DParseExprCXX.cpp2873 D.SetSourceRange(D.getDeclSpec().getSourceRange()); in ParseExpressionListOrTypeId()
/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()
DSemaLambda.cpp883 ParamInfo.getDeclSpec().isConstexprSpecified()); in ActOnStartOfLambdaDefinition()
DSemaDeclAttr.cpp6008 ::checkUnusedDeclAttributes(*this, D.getDeclSpec().getAttributes().getList()); in checkUnusedDeclAttributes()
6117 if (const AttributeList *Attrs = PD.getDeclSpec().getAttributes().getList()) in ProcessDeclAttributes()
DSemaExprCXX.cpp1403 bool TypeContainsAuto = D.getDeclSpec().containsPlaceholderType(); in ActOnCXXNew()
/external/clang/include/clang/Sema/
DDeclSpec.h1729 const DeclSpec &getDeclSpec() const { return DS; } in getDeclSpec() function
1914 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in mayBeFollowedByCXXDirectInit()
1917 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_extern && in mayBeFollowedByCXXDirectInit()
2121 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in isFunctionDeclarationContext()
2191 if (getAttributes() || getDeclSpec().hasAttributes()) return true; in hasAttributes()
2251 return getContext() == MemberContext && !getDeclSpec().isFriendSpecified(); in isFirstDeclarationOfMember()