| /llvm-project-15.0.7/clang/include/clang/Parse/ |
| H A D | RAIIObjectsForParser.h | 210 const ParsingDeclSpec &getDeclSpec() const { in getDeclSpec() function 211 return static_cast<const ParsingDeclSpec&>(Declarator::getDeclSpec()); in getDeclSpec() 215 return const_cast<ParsingDeclSpec&>(getDeclSpec()); in getMutableDeclSpec() 238 const ParsingDeclSpec &getDeclSpec() const { in getDeclSpec() function 239 return static_cast<const ParsingDeclSpec&>(D.getDeclSpec()); in getDeclSpec() 243 return const_cast<ParsingDeclSpec&>(getDeclSpec()); in getMutableDeclSpec()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaDecl.cpp | 6570 DiagnoseFunctionSpecifiers(D.getDeclSpec()); in ActOnTypedefDeclarator() 6572 if (D.getDeclSpec().isInlineSpecified()) in ActOnTypedefDeclarator() 6575 if (D.getDeclSpec().hasConstexprSpecifier()) in ActOnTypedefDeclarator() 7560 if (D.getDeclSpec().isInlineSpecified()) { in ActOnVariableDeclarator() 8936 (D.getDeclSpec().isTypeRep() && in CreateNewFunctionDecl() 9943 if (D.getDeclSpec().isNoreturnSpecified()) in ActOnFunctionDeclarator() 10003 CheckMain(NewFD, D.getDeclSpec()); in ActOnFunctionDeclarator() 10154 CheckMain(NewFD, D.getDeclSpec()); in ActOnFunctionDeclarator() 14209 const DeclSpec &DS = D.getDeclSpec(); in ActOnParamDeclarator() 14898 if (D.getDeclSpec().hasAutoTypeSpec()) { in canDelayFunctionBody() [all …]
|
| H A D | SemaType.cpp | 55 D.getDeclSpec().hasTypeSpecifier()) in isOmittedBlockReturnType() 818 const DeclSpec &DS = declarator.getDeclSpec(); in checkOmittedBlockReturnType() 3518 if (D.getDeclSpec().isFriendSpecified()) in GetDeclSpecTypeForDeclarator() 4872 D.getDeclSpec().getEndLoc(), in GetFullTypeForDeclarator() 5067 if (D.getDeclSpec().hasAutoTypeSpec() && in GetFullTypeForDeclarator() 5070 S.Diag(D.getDeclSpec().getTypeSpecTypeLoc(), in GetFullTypeForDeclarator() 5077 S.Diag(D.getDeclSpec().getTypeSpecTypeLoc(), in GetFullTypeForDeclarator() 5089 S.Diag(D.getDeclSpec().getBeginLoc(), in GetFullTypeForDeclarator() 5099 S.Diag(D.getDeclSpec().getTypeSpecTypeLoc(), in GetFullTypeForDeclarator() 5101 << T << D.getDeclSpec().getSourceRange(); in GetFullTypeForDeclarator() [all …]
|
| H A D | SemaDeclCXX.cpp | 750 auto &DS = D.getDeclSpec(); in ActOnDecompositionDeclarator() 3270 const DeclSpec &DS = D.getDeclSpec(); in ActOnCXXMemberDeclarator() 10480 D.getDeclSpec().getConstSpecLoc(), D.getDeclSpec().getVolatileSpecLoc(), in CheckConstructorDeclarator() 10481 D.getDeclSpec().getRestrictSpecLoc(), in CheckConstructorDeclarator() 10482 D.getDeclSpec().getAtomicSpecLoc()); in CheckConstructorDeclarator() 10648 if (D.getDeclSpec().hasTypeSpecifier()) in CheckDestructorDeclarator() 10746 const DeclSpec &DS = D.getDeclSpec(); in CheckConversionDeclarator() 11027 Diag(D.getDeclSpec().getBeginLoc(), in CheckDeductionGuideDeclarator() 16947 const DeclSpec &DS = D.getDeclSpec(); in ActOnFriendFunctionDecl() 18300 DiagnoseFunctionSpecifiers(D.getDeclSpec()); in HandleMSProperty() [all …]
|
| H A D | SemaTemplate.cpp | 1492 const DeclSpec &DS = D.getDeclSpec(); in ActOnNonTypeTemplateParameter() 10042 Diag(D.getDeclSpec().getBeginLoc(), in ActOnExplicitInstantiation() 10044 << D.getDeclSpec().getSourceRange() << D.getSourceRange(); in ActOnExplicitInstantiation() 10064 if (D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) { in ActOnExplicitInstantiation() 10068 } else if (D.getDeclSpec().getStorageClassSpec() in ActOnExplicitInstantiation() 10082 if (D.getDeclSpec().isInlineSpecified()) in ActOnExplicitInstantiation() 10083 Diag(D.getDeclSpec().getInlineSpecLoc(), in ActOnExplicitInstantiation() 10087 << FixItHint::CreateRemoval(D.getDeclSpec().getInlineSpecLoc()); in ActOnExplicitInstantiation() 10088 if (D.getDeclSpec().hasConstexprSpecifier() && R->isFunctionType()) in ActOnExplicitInstantiation() 10091 Diag(D.getDeclSpec().getConstexprSpecLoc(), in ActOnExplicitInstantiation() [all …]
|
| H A D | SemaTemplateVariadic.cpp | 857 const DeclSpec &DS = D.getDeclSpec(); in containsUnexpandedParameterPacks()
|
| H A D | SemaDeclObjC.cpp | 5175 const DeclSpec &DS = D.getDeclSpec(); in ActOnObjCExceptionDecl() 5189 if (DeclSpec::TSCS TSCS = D.getDeclSpec().getThreadStorageClassSpec()) in ActOnObjCExceptionDecl() 5190 Diag(D.getDeclSpec().getThreadStorageClassSpecLoc(), in ActOnObjCExceptionDecl() 5195 DiagnoseFunctionSpecifiers(D.getDeclSpec()); in ActOnObjCExceptionDecl()
|
| H A D | DeclSpec.cpp | 414 return getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static || in isStaticMember()
|
| H A D | SemaLambda.cpp | 983 ParamInfo.getDeclSpec().getConstexprSpecifier(), in ActOnStartOfLambdaDefinition()
|
| H A D | SemaDeclAttr.cpp | 9231 ::checkUnusedDeclAttributes(*this, D.getDeclSpec().getAttributes()); in checkUnusedDeclAttributes() 9359 if (!PD.getDeclSpec().getAttributes().empty()) { in ProcessDeclAttributes() 9360 ProcessDeclAttributeList(S, D, PD.getDeclSpec().getAttributes(), in ProcessDeclAttributes()
|
| H A D | SemaExprCXX.cpp | 1840 if (D.getDeclSpec().hasAutoTypeSpec()) in ActOnCXXNew()
|
| H A D | SemaOpenMP.cpp | 7081 D.getDeclSpec().getConstexprSpecifier() == ConstexprSpecKind::Constexpr; in ActOnStartOfFunctionDefinitionInOpenMPDeclareVariantScope() 7083 D.getDeclSpec().getConstexprSpecifier() == ConstexprSpecKind::Consteval; in ActOnStartOfFunctionDefinitionInOpenMPDeclareVariantScope()
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | DeclSpec.h | 1940 const DeclSpec &getDeclSpec() const { return DS; } in getDeclSpec() function 2151 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in mayBeFollowedByCXXDirectInit() 2154 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_extern && in mayBeFollowedByCXXDirectInit() 2387 if (getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_typedef) in isFunctionDeclarationContext() 2569 getDeclSpec().hasAttributes()) in hasAttributes() 2631 !getDeclSpec().isFriendSpecified(); in isFirstDeclarationOfMember()
|
| /llvm-project-15.0.7/clang/lib/Parse/ |
| H A D | ParseDecl.cpp | 5948 if (D.getDeclSpec().isTypeSpecPipe() && !isPipeDeclarator(D)) { in ParseDeclaratorInternal() 6170 D.getDeclSpec().getTypeSpecType() != TST_auto)) { in ParseDirectDeclarator() 6193 if (D.getDeclSpec().hasTypeSpecifier()) { in ParseDirectDeclarator() 6336 << (D.getDeclSpec().isEmpty() ? SourceRange() in ParseDirectDeclarator() 6345 << (D.getDeclSpec().isEmpty() ? SourceRange() in ParseDirectDeclarator() 6346 : D.getDeclSpec().getSourceRange()); in ParseDirectDeclarator() 6624 D.getDeclSpec().getStorageClassSpec() != DeclSpec::SCS_typedef && in InitCXXThisScopeForDeclaratorIfRelevant() 6626 ? !D.getDeclSpec().isFriendSpecified() in InitCXXThisScopeForDeclaratorIfRelevant() 6811 if (D.getDeclSpec().getTypeSpecType() == TST_auto) in ParseFunctionDeclarator() 6812 StartLoc = D.getDeclSpec().getTypeSpecTypeLoc(); in ParseFunctionDeclarator() [all …]
|
| H A D | ParseDeclCXX.cpp | 2409 DeclaratorInfo.getDeclSpec().getFriendSpecLoc()); in ParseCXXMemberDeclaratorBeforeInitializer() 2438 DeclaratorInfo.getDeclSpec().getFriendSpecLoc()); in ParseCXXMemberDeclaratorBeforeInitializer() 2906 } else if (DeclaratorInfo.getDeclSpec().getStorageClassSpec() != in ParseCXXClassMemberDeclaration() 2908 DeclaratorInfo.getDeclSpec().getStorageClassSpec() != in ParseCXXClassMemberDeclaration() 2960 DeclaratorInfo.getDeclSpec().getStorageClassSpec() == in ParseCXXClassMemberDeclaration() 3024 DeclaratorInfo.getDeclSpec().getStorageClassSpec() != in ParseCXXClassMemberDeclaration() 3984 InitCXXThisScopeForDeclaratorIfRelevant(D, D.getDeclSpec(), ThisScope); in ParseTrailingRequiresClause() 4006 D.getDeclSpec().getTypeSpecType() == TST_auto) { in ParseTrailingRequiresClause()
|
| H A D | ParseCXXInlineMethods.cpp | 38 if (D.getDeclSpec().isFriendSpecified()) in ParseCXXInlineMethodDef() 112 !D.getDeclSpec().hasConstexprSpecifier() && in ParseCXXInlineMethodDef()
|
| H A D | Parser.cpp | 1222 if (getLangOpts().isImplicitIntRequired() && D.getDeclSpec().isEmpty()) { in ParseFunctionDefinition() 1224 << D.getDeclSpec().getSourceRange(); in ParseFunctionDefinition() 1232 D.SetRangeBegin(D.getDeclSpec().getSourceRange().getBegin()); in ParseFunctionDefinition()
|
| H A D | ParseObjc.cpp | 1236 attrs.getPool().takeAllFrom(D.getDeclSpec().getAttributePool()); in takeDeclAttributes() 1988 getCurScope(), FD.D.getDeclSpec().getSourceRange().getBegin(), FD.D, in ParseObjCClassInstanceVariables()
|
| H A D | ParseExprCXX.cpp | 3282 D.SetSourceRange(D.getDeclSpec().getSourceRange()); in ParseExpressionListOrTypeId()
|