Home
last modified time | relevance | path

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

/external/clang/lib/Parse/
DRAIIObjectsForParser.h202 const ParsingDeclSpec &getDeclSpec() const { in getDeclSpec() function
203 return static_cast<const ParsingDeclSpec&>(Declarator::getDeclSpec()); in getDeclSpec()
207 return const_cast<ParsingDeclSpec&>(getDeclSpec()); in getMutableDeclSpec()
229 const ParsingDeclSpec &getDeclSpec() const { in getDeclSpec() function
230 return static_cast<const ParsingDeclSpec&>(D.getDeclSpec()); in getDeclSpec()
234 return const_cast<ParsingDeclSpec&>(getDeclSpec()); in getMutableDeclSpec()
DParseCXXInlineMethods.cpp44 if (D.getDeclSpec().isFriendSpecified()) in ParseCXXInlineMethodDef()
53 bool TypeSpecContainsAuto = D.getDeclSpec().containsPlaceholderType(); in ParseCXXInlineMethodDef()
106 !D.getDeclSpec().isConstexprSpecified() && in ParseCXXInlineMethodDef()
169 if (D.getDeclSpec().isFriendSpecified()) { in ParseCXXInlineMethodDef()
DParseDecl.cpp1801 bool TypeContainsAuto = D.getDeclSpec().containsPlaceholderType(); in ParseDeclarationAfterDeclaratorAndAttributes()
3350 FD.D.getDeclSpec().getSourceRange().getBegin(), in ParseStructUnionBody()
4775 if (D.getDeclSpec().hasTypeSpecifier()) in ParseDirectDeclarator()
4862 << (D.getDeclSpec().isEmpty() ? SourceRange() in ParseDirectDeclarator()
4863 : D.getDeclSpec().getSourceRange()); in ParseDirectDeclarator()
5157 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_typedef && in ParseFunctionDeclarator()
5159 ? !D.getDeclSpec().isFriendSpecified() in ParseFunctionDeclarator()
5166 (D.getDeclSpec().isConstexprSpecified() && in ParseFunctionDeclarator()
5187 if (D.getDeclSpec().getTypeSpecType() == TST_auto) in ParseFunctionDeclarator()
5188 StartLoc = D.getDeclSpec().getTypeSpecTypeLoc(); in ParseFunctionDeclarator()
[all …]
DParseObjc.cpp881 attrs.getPool().takeAllFrom(D.getDeclSpec().getAttributePool()); in takeDeclAttributes()
884 takeDeclAttributes(attrs, D.getDeclSpec().getAttributes().getList()); in takeDeclAttributes()
1358 FD.D.getDeclSpec().getSourceRange().getBegin(), in ParseObjCClassInstanceVariables()
DParser.cpp932 if (getLangOpts().ImplicitInt && D.getDeclSpec().isEmpty()) { in ParseFunctionDefinition()
940 D.SetRangeBegin(D.getDeclSpec().getSourceRange().getBegin()); in ParseFunctionDefinition()
DParseDeclCXX.cpp2288 DeclaratorInfo.getDeclSpec().getStorageClassSpec() in ParseCXXClassMemberDeclaration()
2333 DeclaratorInfo.getDeclSpec().getStorageClassSpec() != in ParseCXXClassMemberDeclaration()
2382 DeclaratorInfo.getDeclSpec().getStorageClassSpec() != in ParseCXXClassMemberDeclaration()
DParseExprCXX.cpp2684 D.SetSourceRange(D.getDeclSpec().getSourceRange()); in ParseExpressionListOrTypeId()
/external/clang/lib/Sema/
DSemaDecl.cpp4375 Diag(D.getDeclSpec().getLocStart(), in HandleDeclarator()
4377 << D.getDeclSpec().getSourceRange() << D.getSourceRange(); in HandleDeclarator()
4396 bool EnteringContext = !D.getDeclSpec().isFriendSpecified(); in HandleDeclarator()
4420 } else if (!D.getDeclSpec().isFriendSpecified()) { in HandleDeclarator()
4443 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in HandleDeclarator()
4468 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in HandleDeclarator()
4471 (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_extern || in HandleDeclarator()
4477 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_static) in HandleDeclarator()
4532 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_typedef) in HandleDeclarator()
4543 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) { in HandleDeclarator()
[all …]
DSemaType.cpp49 D.getDeclSpec().hasTypeSpecifier()) in isOmittedBlockReturnType()
220 return const_cast<DeclSpec&>(declarator.getDeclSpec()); in getMutableDeclSpec()
702 const DeclSpec &DS = declarator.getDeclSpec(); in ConvertDeclSpecToType()
2100 D.getDeclSpec().getTypeQualifiers(), in diagnoseRedundantReturnTypeQualifiers()
2102 D.getDeclSpec().getConstSpecLoc(), in diagnoseRedundantReturnTypeQualifiers()
2103 D.getDeclSpec().getVolatileSpecLoc(), in diagnoseRedundantReturnTypeQualifiers()
2104 D.getDeclSpec().getRestrictSpecLoc(), in diagnoseRedundantReturnTypeQualifiers()
2105 D.getDeclSpec().getAtomicSpecLoc()); in diagnoseRedundantReturnTypeQualifiers()
2127 ContainsPlaceholderType = D.getDeclSpec().containsPlaceholderType(); in GetDeclSpecTypeForDeclarator()
2129 if (!D.isInvalidType() && D.getDeclSpec().isTypeSpecOwned()) { in GetDeclSpecTypeForDeclarator()
[all …]
DSemaDeclCXX.cpp1934 const DeclSpec &DS = D.getDeclSpec(); in ActOnCXXMemberDeclarator()
2030 if (D.getDeclSpec().getTypeQualifiers() & DeclSpec::TQ_const) in ActOnCXXMemberDeclarator()
2110 getMSPropertyAttr(D.getDeclSpec().getAttributes().getList()); in ActOnCXXMemberDeclarator()
2123 … assert(InitStyle == ICIS_NoInit || D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static); in ActOnCXXMemberDeclarator()
6259 bool isVirtual = D.getDeclSpec().isVirtualSpecified(); in CheckConstructorDeclarator()
6269 << "virtual" << SourceRange(D.getDeclSpec().getVirtualSpecLoc()) in CheckConstructorDeclarator()
6276 << "static" << SourceRange(D.getDeclSpec().getStorageClassSpecLoc()) in CheckConstructorDeclarator()
6282 if (unsigned TypeQuals = D.getDeclSpec().getTypeQualifiers()) { in CheckConstructorDeclarator()
6285 D.getDeclSpec().getConstSpecLoc(), D.getDeclSpec().getVolatileSpecLoc(), in CheckConstructorDeclarator()
6286 D.getDeclSpec().getRestrictSpecLoc(), in CheckConstructorDeclarator()
[all …]
DSemaTemplate.cpp7364 Diag(D.getDeclSpec().getLocStart(), in ActOnExplicitInstantiation()
7366 << D.getDeclSpec().getSourceRange() in ActOnExplicitInstantiation()
7387 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) { in ActOnExplicitInstantiation()
7391 } else if (D.getDeclSpec().getStorageClassSpec() in ActOnExplicitInstantiation()
7395 << FixItHint::CreateRemoval(D.getDeclSpec().getStorageClassSpecLoc()); in ActOnExplicitInstantiation()
7405 if (D.getDeclSpec().isInlineSpecified()) in ActOnExplicitInstantiation()
7406 Diag(D.getDeclSpec().getInlineSpecLoc(), in ActOnExplicitInstantiation()
7410 << FixItHint::CreateRemoval(D.getDeclSpec().getInlineSpecLoc()); in ActOnExplicitInstantiation()
7411 if (D.getDeclSpec().isConstexprSpecified() && R->isFunctionType()) in ActOnExplicitInstantiation()
7414 Diag(D.getDeclSpec().getConstexprSpecLoc(), in ActOnExplicitInstantiation()
[all …]
DSemaTemplateVariadic.cpp691 const DeclSpec &DS = D.getDeclSpec(); in containsUnexpandedParameterPacks()
DSemaDeclObjC.cpp3367 const DeclSpec &DS = D.getDeclSpec(); in ActOnObjCExceptionDecl()
3378 if (DeclSpec::TSCS TSCS = D.getDeclSpec().getThreadStorageClassSpec()) in ActOnObjCExceptionDecl()
3379 Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(), in ActOnObjCExceptionDecl()
3384 DiagnoseFunctionSpecifiers(D.getDeclSpec()); in ActOnObjCExceptionDecl()
DDeclSpec.cpp323 return getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static || in isStaticMember()
DSemaDeclAttr.cpp4609 ::checkUnusedDeclAttributes(*this, D.getDeclSpec().getAttributes().getList()); in checkUnusedDeclAttributes()
4719 if (const AttributeList *Attrs = PD.getDeclSpec().getAttributes().getList()) in ProcessDeclAttributes()
DSemaExprCXX.cpp1056 bool TypeContainsAuto = D.getDeclSpec().containsPlaceholderType(); in ActOnCXXNew()
/external/clang/include/clang/Sema/
DDeclSpec.h1602 const DeclSpec &getDeclSpec() const { return DS; } in getDeclSpec() function
1782 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in mayBeFollowedByCXXDirectInit()
1785 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_extern && in mayBeFollowedByCXXDirectInit()
1979 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in isFunctionDeclarationContext()
2048 if (getAttributes() || getDeclSpec().hasAttributes()) return true; in hasAttributes()
2102 return getContext() == MemberContext && !getDeclSpec().isFriendSpecified(); in isFirstDeclarationOfMember()