Home
last modified time | relevance | path

Searched refs:getDeclSpec (Results 1 – 17 of 17) 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()
108 !D.getDeclSpec().isConstexprSpecified() && in ParseCXXInlineMethodDef()
171 if (D.getDeclSpec().isFriendSpecified()) { in ParseCXXInlineMethodDef()
DParseDecl.cpp1988 bool TypeContainsAuto = D.getDeclSpec().containsPlaceholderType(); in ParseDeclarationAfterDeclaratorAndAttributes()
3630 FD.D.getDeclSpec().getSourceRange().getBegin(), in ParseStructUnionBody()
5141 D.getDeclSpec().getTypeSpecType() != TST_auto)) { in ParseDirectDeclarator()
5163 if (D.getDeclSpec().hasTypeSpecifier()) in ParseDirectDeclarator()
5268 << (D.getDeclSpec().isEmpty() ? SourceRange() in ParseDirectDeclarator()
5269 : D.getDeclSpec().getSourceRange()); in ParseDirectDeclarator()
5558 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_typedef && in ParseFunctionDeclarator()
5560 ? !D.getDeclSpec().isFriendSpecified() in ParseFunctionDeclarator()
5567 (D.getDeclSpec().isConstexprSpecified() && in ParseFunctionDeclarator()
5609 if (D.getDeclSpec().getTypeSpecType() == TST_auto) in ParseFunctionDeclarator()
[all …]
DParseDeclCXX.cpp2097 DeclaratorInfo.getDeclSpec().getFriendSpecLoc()); in ParseCXXMemberDeclaratorBeforeInitializer()
2121 DeclaratorInfo.getDeclSpec().getFriendSpecLoc()); in ParseCXXMemberDeclaratorBeforeInitializer()
2547 } else if (DeclaratorInfo.getDeclSpec().getStorageClassSpec() != in ParseCXXClassMemberDeclaration()
2549 DeclaratorInfo.getDeclSpec().getStorageClassSpec() != in ParseCXXClassMemberDeclaration()
2598 DeclaratorInfo.getDeclSpec().getStorageClassSpec() == in ParseCXXClassMemberDeclaration()
2655 DeclaratorInfo.getDeclSpec().getStorageClassSpec() != in ParseCXXClassMemberDeclaration()
DParser.cpp971 if (getLangOpts().ImplicitInt && D.getDeclSpec().isEmpty()) { in ParseFunctionDefinition()
979 D.SetRangeBegin(D.getDeclSpec().getSourceRange().getBegin()); in ParseFunctionDefinition()
DParseObjc.cpp1249 attrs.getPool().takeAllFrom(D.getDeclSpec().getAttributePool()); in takeDeclAttributes()
1252 takeDeclAttributes(attrs, D.getDeclSpec().getAttributes().getList()); in takeDeclAttributes()
1960 getCurScope(), FD.D.getDeclSpec().getSourceRange().getBegin(), FD.D, in ParseObjCClassInstanceVariables()
DParseExprCXX.cpp2797 D.SetSourceRange(D.getDeclSpec().getSourceRange()); in ParseExpressionListOrTypeId()
/external/clang/lib/Sema/
DSemaDecl.cpp4793 Diag(D.getDeclSpec().getLocStart(), in HandleDeclarator()
4795 << D.getDeclSpec().getSourceRange() << D.getSourceRange(); in HandleDeclarator()
4814 bool EnteringContext = !D.getDeclSpec().isFriendSpecified(); in HandleDeclarator()
4840 if (!D.getDeclSpec().isFriendSpecified()) { in HandleDeclarator()
4867 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in HandleDeclarator()
4889 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in HandleDeclarator()
4892 (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_extern || in HandleDeclarator()
4898 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_static) in HandleDeclarator()
4953 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_typedef) in HandleDeclarator()
4961 if (D.getDeclSpec().isConceptSpecified()) { in HandleDeclarator()
[all …]
DSemaType.cpp50 D.getDeclSpec().hasTypeSpecifier()) in isOmittedBlockReturnType()
225 return const_cast<DeclSpec&>(declarator.getDeclSpec()); in getMutableDeclSpec()
1181 const DeclSpec &DS = declarator.getDeclSpec(); in ConvertDeclSpecToType()
2556 D.getDeclSpec().getTypeQualifiers(), in diagnoseRedundantReturnTypeQualifiers()
2558 D.getDeclSpec().getConstSpecLoc(), in diagnoseRedundantReturnTypeQualifiers()
2559 D.getDeclSpec().getVolatileSpecLoc(), in diagnoseRedundantReturnTypeQualifiers()
2560 D.getDeclSpec().getRestrictSpecLoc(), in diagnoseRedundantReturnTypeQualifiers()
2561 D.getDeclSpec().getAtomicSpecLoc()); in diagnoseRedundantReturnTypeQualifiers()
2582 if (!D.isInvalidType() && D.getDeclSpec().isTypeSpecOwned()) { in GetDeclSpecTypeForDeclarator()
2583 OwnedTagDecl = cast<TagDecl>(D.getDeclSpec().getRepAsDecl()); in GetDeclSpecTypeForDeclarator()
[all …]
DSemaDeclCXX.cpp2006 const DeclSpec &DS = D.getDeclSpec(); in ActOnCXXMemberDeclarator()
2102 if (D.getDeclSpec().getTypeQualifiers() & DeclSpec::TQ_const) in ActOnCXXMemberDeclarator()
2182 getMSPropertyAttr(D.getDeclSpec().getAttributes().getList()); in ActOnCXXMemberDeclarator()
6645 bool isVirtual = D.getDeclSpec().isVirtualSpecified(); in CheckConstructorDeclarator()
6655 << "virtual" << SourceRange(D.getDeclSpec().getVirtualSpecLoc()) in CheckConstructorDeclarator()
6662 << "static" << SourceRange(D.getDeclSpec().getStorageClassSpecLoc()) in CheckConstructorDeclarator()
6668 if (unsigned TypeQuals = D.getDeclSpec().getTypeQualifiers()) { in CheckConstructorDeclarator()
6671 D.getDeclSpec().getConstSpecLoc(), D.getDeclSpec().getVolatileSpecLoc(), in CheckConstructorDeclarator()
6672 D.getDeclSpec().getRestrictSpecLoc(), in CheckConstructorDeclarator()
6673 D.getDeclSpec().getAtomicSpecLoc()); in CheckConstructorDeclarator()
[all …]
DSemaTemplate.cpp7617 Diag(D.getDeclSpec().getLocStart(), in ActOnExplicitInstantiation()
7619 << D.getDeclSpec().getSourceRange() in ActOnExplicitInstantiation()
7640 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) { in ActOnExplicitInstantiation()
7644 } else if (D.getDeclSpec().getStorageClassSpec() in ActOnExplicitInstantiation()
7648 << FixItHint::CreateRemoval(D.getDeclSpec().getStorageClassSpecLoc()); in ActOnExplicitInstantiation()
7658 if (D.getDeclSpec().isInlineSpecified()) in ActOnExplicitInstantiation()
7659 Diag(D.getDeclSpec().getInlineSpecLoc(), in ActOnExplicitInstantiation()
7663 << FixItHint::CreateRemoval(D.getDeclSpec().getInlineSpecLoc()); in ActOnExplicitInstantiation()
7664 if (D.getDeclSpec().isConstexprSpecified() && R->isFunctionType()) in ActOnExplicitInstantiation()
7667 Diag(D.getDeclSpec().getConstexprSpecLoc(), in ActOnExplicitInstantiation()
[all …]
DSemaTemplateVariadic.cpp700 const DeclSpec &DS = D.getDeclSpec(); in containsUnexpandedParameterPacks()
DSemaDeclObjC.cpp4455 const DeclSpec &DS = D.getDeclSpec(); in ActOnObjCExceptionDecl()
4466 if (DeclSpec::TSCS TSCS = D.getDeclSpec().getThreadStorageClassSpec()) in ActOnObjCExceptionDecl()
4467 Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(), in ActOnObjCExceptionDecl()
4472 DiagnoseFunctionSpecifiers(D.getDeclSpec()); in ActOnObjCExceptionDecl()
DDeclSpec.cpp339 return getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static || in isStaticMember()
DSemaDeclAttr.cpp5557 ::checkUnusedDeclAttributes(*this, D.getDeclSpec().getAttributes().getList()); in checkUnusedDeclAttributes()
5666 if (const AttributeList *Attrs = PD.getDeclSpec().getAttributes().getList()) in ProcessDeclAttributes()
DSemaExprCXX.cpp1170 bool TypeContainsAuto = D.getDeclSpec().containsPlaceholderType(); in ActOnCXXNew()
/external/clang/include/clang/Sema/
DDeclSpec.h1683 const DeclSpec &getDeclSpec() const { return DS; } in getDeclSpec() function
1865 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in mayBeFollowedByCXXDirectInit()
1868 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_extern && in mayBeFollowedByCXXDirectInit()
2070 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in isFunctionDeclarationContext()
2139 if (getAttributes() || getDeclSpec().hasAttributes()) return true; in hasAttributes()
2199 return getContext() == MemberContext && !getDeclSpec().isFriendSpecified(); in isFirstDeclarationOfMember()