Home
last modified time | relevance | path

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

/external/clang/lib/Parse/
DRAIIObjectsForParser.h203 const ParsingDeclSpec &getDeclSpec() const { in getDeclSpec() function
204 return static_cast<const ParsingDeclSpec&>(Declarator::getDeclSpec()); in getDeclSpec()
208 return const_cast<ParsingDeclSpec&>(getDeclSpec()); in getMutableDeclSpec()
230 const ParsingDeclSpec &getDeclSpec() const { in getDeclSpec() function
231 return static_cast<const ParsingDeclSpec&>(D.getDeclSpec()); in getDeclSpec()
235 return const_cast<ParsingDeclSpec&>(getDeclSpec()); in getMutableDeclSpec()
DParseCXXInlineMethods.cpp43 if (D.getDeclSpec().isFriendSpecified()) in ParseCXXInlineMethodDef()
54 = D.getDeclSpec().getTypeSpecType() == DeclSpec::TST_auto; in ParseCXXInlineMethodDef()
DParseDeclCXX.cpp2039 DeclaratorInfo.getDeclSpec().getStorageClassSpec() in ParseCXXClassMemberDeclaration()
2041 DeclaratorInfo.getDeclSpec().getStorageClassSpec() in ParseCXXClassMemberDeclaration()
2119 DeclaratorInfo.getDeclSpec().getStorageClassSpec() in ParseCXXClassMemberDeclaration()
DParseDecl.cpp1616 D.getDeclSpec().getTypeSpecType() == DeclSpec::TST_auto; in ParseDeclarationAfterDeclaratorAndAttributes()
2960 FD.D.getDeclSpec().getSourceRange().getBegin(), in ParseStructUnionBody()
4295 if (D.getDeclSpec().hasTypeSpecifier()) in ParseDirectDeclarator()
4301 D.getDeclSpec().isFriendSpecified())); in ParseDirectDeclarator()
4362 << D.getDeclSpec().getSourceRange(); in ParseDirectDeclarator()
DParser.cpp926 if (getLangOpts().ImplicitInt && D.getDeclSpec().isEmpty()) { in ParseFunctionDefinition()
932 D.SetRangeBegin(D.getDeclSpec().getSourceRange().getBegin()); in ParseFunctionDefinition()
DParseObjc.cpp859 attrs.getPool().takeAllFrom(D.getDeclSpec().getAttributePool()); in takeDeclAttributes()
862 takeDeclAttributes(attrs, D.getDeclSpec().getAttributes().getList()); in takeDeclAttributes()
1314 FD.D.getDeclSpec().getSourceRange().getBegin(), in ParseObjCClassInstanceVariables()
DParseExprCXX.cpp2380 D.SetSourceRange(D.getDeclSpec().getSourceRange()); in ParseExpressionListOrTypeId()
/external/clang/lib/Sema/
DSemaDecl.cpp3593 Diag(D.getDeclSpec().getLocStart(), in HandleDeclarator()
3595 << D.getDeclSpec().getSourceRange() << D.getSourceRange(); in HandleDeclarator()
3614 bool EnteringContext = !D.getDeclSpec().isFriendSpecified(); in HandleDeclarator()
3638 } else if (!D.getDeclSpec().isFriendSpecified()) { in HandleDeclarator()
3661 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in HandleDeclarator()
3683 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in HandleDeclarator()
3687 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_static) in HandleDeclarator()
3689 } else if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_extern) in HandleDeclarator()
3692 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_static) in HandleDeclarator()
3747 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_typedef) in HandleDeclarator()
[all …]
DSemaType.cpp41 D.getDeclSpec().hasTypeSpecifier()) in isOmittedBlockReturnType()
203 return const_cast<DeclSpec&>(declarator.getDeclSpec()); in getMutableDeclSpec()
587 const DeclSpec &DS = declarator.getDeclSpec(); in ConvertDeclSpecToType()
1803 if (!D.isInvalidType() && D.getDeclSpec().isTypeSpecOwned()) { in GetDeclSpecTypeForDeclarator()
1804 OwnedTagDecl = cast<TagDecl>(D.getDeclSpec().getRepAsDecl()); in GetDeclSpecTypeForDeclarator()
1816 if (AttributeList *attrs = D.getDeclSpec().getAttributes().getList()) in GetDeclSpecTypeForDeclarator()
1835 if (D.getDeclSpec().getTypeSpecType() == DeclSpec::TST_auto && in GetDeclSpecTypeForDeclarator()
1850 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static) in GetDeclSpecTypeForDeclarator()
1891 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in GetDeclSpecTypeForDeclarator()
1918 SemaRef.Diag(D.getDeclSpec().getTypeSpecTypeLoc(), in GetDeclSpecTypeForDeclarator()
[all …]
DSemaTemplate.cpp6626 Diag(D.getDeclSpec().getLocStart(), in ActOnExplicitInstantiation()
6628 << D.getDeclSpec().getSourceRange() in ActOnExplicitInstantiation()
6649 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) { in ActOnExplicitInstantiation()
6653 } else if (D.getDeclSpec().getStorageClassSpec() in ActOnExplicitInstantiation()
6657 << FixItHint::CreateRemoval(D.getDeclSpec().getStorageClassSpecLoc()); in ActOnExplicitInstantiation()
6667 if (D.getDeclSpec().isInlineSpecified()) in ActOnExplicitInstantiation()
6668 Diag(D.getDeclSpec().getInlineSpecLoc(), in ActOnExplicitInstantiation()
6672 << FixItHint::CreateRemoval(D.getDeclSpec().getInlineSpecLoc()); in ActOnExplicitInstantiation()
6673 if (D.getDeclSpec().isConstexprSpecified()) in ActOnExplicitInstantiation()
6676 Diag(D.getDeclSpec().getConstexprSpecLoc(), in ActOnExplicitInstantiation()
[all …]
DSemaDeclCXX.cpp1499 const DeclSpec &DS = D.getDeclSpec(); in ActOnCXXMemberDeclarator()
4947 bool isVirtual = D.getDeclSpec().isVirtualSpecified(); in CheckConstructorDeclarator()
4957 << "virtual" << SourceRange(D.getDeclSpec().getVirtualSpecLoc()) in CheckConstructorDeclarator()
4964 << "static" << SourceRange(D.getDeclSpec().getStorageClassSpecLoc()) in CheckConstructorDeclarator()
5115 << "static" << SourceRange(D.getDeclSpec().getStorageClassSpecLoc()) in CheckDestructorDeclarator()
5117 << FixItHint::CreateRemoval(D.getDeclSpec().getStorageClassSpecLoc()); in CheckDestructorDeclarator()
5121 if (D.getDeclSpec().hasTypeSpecifier() && !D.isInvalidType()) { in CheckDestructorDeclarator()
5131 << SourceRange(D.getDeclSpec().getTypeSpecTypeLoc()) in CheckDestructorDeclarator()
5203 << "static" << SourceRange(D.getDeclSpec().getStorageClassSpecLoc()) in CheckConversionDeclarator()
5211 if (D.getDeclSpec().hasTypeSpecifier() && !D.isInvalidType()) { in CheckConversionDeclarator()
[all …]
DSemaTemplateVariadic.cpp693 const DeclSpec &DS = D.getDeclSpec(); in containsUnexpandedParameterPacks()
DSemaDeclObjC.cpp3115 const DeclSpec &DS = D.getDeclSpec(); in ActOnObjCExceptionDecl()
3126 if (D.getDeclSpec().isThreadSpecified()) in ActOnObjCExceptionDecl()
3127 Diag(D.getDeclSpec().getThreadSpecLoc(), diag::err_invalid_thread); in ActOnObjCExceptionDecl()
DSemaDeclAttr.cpp4592 ::checkUnusedDeclAttributes(*this, D.getDeclSpec().getAttributes().getList()); in checkUnusedDeclAttributes()
4697 if (const AttributeList *Attrs = PD.getDeclSpec().getAttributes().getList()) in ProcessDeclAttributes()
DSemaExprCXX.cpp960 bool TypeContainsAuto = D.getDeclSpec().getTypeSpecType() == DeclSpec::TST_auto; in ActOnCXXNew()
/external/clang/include/clang/Sema/
DDeclSpec.h1538 const DeclSpec &getDeclSpec() const { return DS; } in getDeclSpec() function
1680 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in mayBeFollowedByCXXDirectInit()
1683 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_extern && in mayBeFollowedByCXXDirectInit()
1887 if (getAttributes() || getDeclSpec().hasAttributes()) return true; in hasAttributes()