reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/Parse/ParseDecl.cpp
 3026   if (DS.getSourceRange().isInvalid()) {
 3030     DS.SetRangeStart(Tok.getLocation());
 3031     DS.SetRangeEnd(SourceLocation());
 3058         DS.getStorageClassSpec() == clang::DeclSpec::SCS_typedef &&
 3059         !DS.hasTypeSpecifier() && GetLookAheadToken(1).is(tok::less))
 3075         DS.takeAttributesFrom(attrs);
 3080       DS.Finish(Actions, Policy);
 3101       if (DS.hasTypeSpecifier()) {
 3110             (DSContext == DeclSpecContext::DSC_class && DS.isFriendSpecified());
 3112         Actions.CodeCompleteDeclSpec(getCurScope(), DS,
 3135         if (!DS.hasTypeSpecifier())
 3136           DS.SetTypeSpecError();
 3144       if (DS.hasTypeSpecifier() || DS.isTypeAltiVecVector())
 3144       if (DS.hasTypeSpecifier() || DS.isTypeAltiVecVector())
 3179         DS.getTypeSpecScope() = SS;
 3188         DS.getTypeSpecScope() = SS;
 3192           isInvalid = DS.SetTypeSpecType(DeclSpec::TST_typename,
 3199           DS.SetTypeSpecError();
 3200         DS.SetRangeEnd(Tok.getAnnotationEndLoc());
 3232         if (ParseImplicitInt(DS, &SS, TemplateInfo, AS, DSContext, Attrs)) {
 3242       DS.getTypeSpecScope() = SS;
 3245       isInvalid = DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec,
 3250       DS.SetRangeEnd(Tok.getLocation());
 3259       if (DS.hasTypeSpecifier() && DS.hasTagDefinition())
 3259       if (DS.hasTypeSpecifier() && DS.hasTagDefinition())
 3264         isInvalid = DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec,
 3267         DS.SetTypeSpecError();
 3272       DS.SetRangeEnd(Tok.getAnnotationEndLoc());
 3286       if (DS.getTypeSpecType() == TST_bool &&
 3287           DS.getTypeQualifiers() == DeclSpec::TQ_const &&
 3288           DS.getStorageClassSpec() == DeclSpec::SCS_static)
 3301       if (DS.hasTypeSpecifier())
 3333           DS.SetTypeSpecError();
 3341       if (TryAltiVecToken(DS, Loc, PrevSpec, DiagID, isInvalid))
 3346       if (DS.isTypeAltiVecVector())
 3353         isInvalid = DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec,
 3358         DS.SetRangeEnd(Loc);
 3379         if (ParseImplicitInt(DS, nullptr, TemplateInfo, AS, DSContext, Attrs)) {
 3400       isInvalid = DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec,
 3405       DS.SetRangeEnd(Tok.getLocation());
 3417           DS.UpdateTypeRep(NewTypeRep.get());
 3418           DS.SetRangeEnd(NewEndLoc);
 3453       ParseGNUAttributes(DS.getAttributes(), nullptr, LateAttrs);
 3458       ParseMicrosoftDeclSpecs(DS.getAttributes());
 3463       isInvalid = DS.setFunctionSpecForceInline(Loc, PrevSpec, DiagID);
 3466       DS.getAttributes().addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc,
 3472       isInvalid = DS.SetTypeQual(DeclSpec::TQ_unaligned, Loc, PrevSpec, DiagID,
 3487       ParseMicrosoftTypeAttributes(DS.getAttributes());
 3492       ParseBorlandTypeAttributes(DS.getAttributes());
 3497       ParseOpenCLKernelAttributes(DS.getAttributes());
 3504       ParseNullabilityTypeSpecifiers(DS.getAttributes());
 3509       DS.getAttributes().addNew(Tok.getIdentifierInfo(), Loc, nullptr, Loc,
 3516       isInvalid = DS.SetStorageClassSpec(Actions, DeclSpec::SCS_typedef, Loc,
 3521       if (DS.getThreadStorageClassSpec() == DeclSpec::TSCS___thread)
 3523       isInvalid = DS.SetStorageClassSpec(Actions, DeclSpec::SCS_extern, Loc,
 3528       isInvalid = DS.SetStorageClassSpec(Actions, DeclSpec::SCS_private_extern,
 3533       if (DS.getThreadStorageClassSpec() == DeclSpec::TSCS___thread)
 3535       isInvalid = DS.SetStorageClassSpec(Actions, DeclSpec::SCS_static, Loc,
 3542           isInvalid = DS.SetStorageClassSpec(Actions, DeclSpec::SCS_auto, Loc,
 3546               << FixItHint::CreateRemoval(DS.getStorageClassSpecLoc());
 3548           isInvalid = DS.SetTypeSpecType(DeclSpec::TST_auto, Loc, PrevSpec,
 3551         isInvalid = DS.SetStorageClassSpec(Actions, DeclSpec::SCS_auto, Loc,
 3557       isInvalid = DS.SetTypeSpecType(DeclSpec::TST_auto_type, Loc, PrevSpec,
 3561       isInvalid = DS.SetStorageClassSpec(Actions, DeclSpec::SCS_register, Loc,
 3566       isInvalid = DS.SetStorageClassSpec(Actions, DeclSpec::SCS_mutable, Loc,
 3571       isInvalid = DS.SetStorageClassSpecThread(DeclSpec::TSCS___thread, Loc,
 3576       isInvalid = DS.SetStorageClassSpecThread(DeclSpec::TSCS_thread_local, Loc,
 3583       isInvalid = DS.SetStorageClassSpecThread(DeclSpec::TSCS__Thread_local,
 3590       isInvalid = DS.setFunctionSpecInline(Loc, PrevSpec, DiagID);
 3601         isInvalid = DS.setFunctionSpecVirtual(Loc, PrevSpec, DiagID);
 3627       isInvalid = DS.setFunctionSpecExplicit(ExplicitLoc, PrevSpec, DiagID,
 3634       isInvalid = DS.setFunctionSpecNoreturn(Loc, PrevSpec, DiagID);
 3641       ParseAlignmentSpecifier(DS.getAttributes());
 3647         isInvalid = DS.SetFriendSpec(Loc, PrevSpec, DiagID);
 3657       isInvalid = DS.setModulePrivateSpec(Loc, PrevSpec, DiagID);
 3662       isInvalid = DS.SetConstexprSpec(CSK_constexpr, Loc, PrevSpec, DiagID);
 3665       isInvalid = DS.SetConstexprSpec(CSK_consteval, Loc, PrevSpec, DiagID);
 3668       isInvalid = DS.SetConstexprSpec(CSK_constinit, Loc, PrevSpec, DiagID);
 3673       isInvalid = DS.SetTypeSpecWidth(DeclSpec::TSW_short, Loc, PrevSpec,
 3677       if (DS.getTypeSpecWidth() != DeclSpec::TSW_long)
 3678         isInvalid = DS.SetTypeSpecWidth(DeclSpec::TSW_long, Loc, PrevSpec,
 3681         isInvalid = DS.SetTypeSpecWidth(DeclSpec::TSW_longlong, Loc, PrevSpec,
 3685         isInvalid = DS.SetTypeSpecWidth(DeclSpec::TSW_longlong, Loc, PrevSpec,
 3689       isInvalid = DS.SetTypeSpecSign(DeclSpec::TSS_signed, Loc, PrevSpec,
 3693       isInvalid = DS.SetTypeSpecSign(DeclSpec::TSS_unsigned, Loc, PrevSpec,
 3699       isInvalid = DS.SetTypeSpecComplex(DeclSpec::TSC_complex, Loc, PrevSpec,
 3705       isInvalid = DS.SetTypeSpecComplex(DeclSpec::TSC_imaginary, Loc, PrevSpec,
 3709       isInvalid = DS.SetTypeSpecType(DeclSpec::TST_void, Loc, PrevSpec,
 3713       isInvalid = DS.SetTypeSpecType(DeclSpec::TST_char, Loc, PrevSpec,
 3717       isInvalid = DS.SetTypeSpecType(DeclSpec::TST_int, Loc, PrevSpec,
 3721       isInvalid = DS.SetTypeSpecType(DeclSpec::TST_int128, Loc, PrevSpec,
 3725       isInvalid = DS.SetTypeSpecType(DeclSpec::TST_half, Loc, PrevSpec,
 3729       isInvalid = DS.SetTypeSpecType(DeclSpec::TST_float, Loc, PrevSpec,
 3733       isInvalid = DS.SetTypeSpecType(DeclSpec::TST_double, Loc, PrevSpec,
 3737       isInvalid = DS.SetTypeSpecType(DeclSpec::TST_float16, Loc, PrevSpec,
 3744         isInvalid = DS.SetTypeSpecType(DeclSpec::TST_accum, Loc, PrevSpec,
 3752         isInvalid = DS.SetTypeSpecType(DeclSpec::TST_fract, Loc, PrevSpec,
 3760         isInvalid = DS.SetTypeSpecSat(Loc, PrevSpec, DiagID);
 3764       isInvalid = DS.SetTypeSpecType(DeclSpec::TST_float128, Loc, PrevSpec,
 3768       isInvalid = DS.SetTypeSpecType(DeclSpec::TST_wchar, Loc, PrevSpec,
 3772       isInvalid = DS.SetTypeSpecType(DeclSpec::TST_char8, Loc, PrevSpec,
 3776       isInvalid = DS.SetTypeSpecType(DeclSpec::TST_char16, Loc, PrevSpec,
 3780       isInvalid = DS.SetTypeSpecType(DeclSpec::TST_char32, Loc, PrevSpec,
 3789           DS.getTypeSpecType() != DeclSpec::TST_unspecified &&
 3790           DS.getStorageClassSpec() == DeclSpec::SCS_typedef) {
 3797         isInvalid = DS.SetTypeSpecType(DeclSpec::TST_bool, Loc, PrevSpec,
 3802       isInvalid = DS.SetTypeSpecType(DeclSpec::TST_decimal32, Loc, PrevSpec,
 3806       isInvalid = DS.SetTypeSpecType(DeclSpec::TST_decimal64, Loc, PrevSpec,
 3810       isInvalid = DS.SetTypeSpecType(DeclSpec::TST_decimal128, Loc, PrevSpec,
 3814       isInvalid = DS.SetTypeAltiVecVector(true, Loc, PrevSpec, DiagID, Policy);
 3817       isInvalid = DS.SetTypeAltiVecPixel(true, Loc, PrevSpec, DiagID, Policy);
 3820       isInvalid = DS.SetTypeAltiVecBool(true, Loc, PrevSpec, DiagID, Policy);
 3830       isInvalid = DS.SetTypePipe(true, Loc, PrevSpec, DiagID, Policy);
 3839       isInvalid = DS.SetTypeSpecType(TST_unknown_anytype, Loc,
 3855       ParseClassSpecifier(Kind, Loc, DS, TemplateInfo, AS,
 3870       ParseEnumSpecifier(Loc, DS, TemplateInfo, AS, DSContext);
 3875       isInvalid = DS.SetTypeQual(DeclSpec::TQ_const, Loc, PrevSpec, DiagID,
 3879       isInvalid = DS.SetTypeQual(DeclSpec::TQ_volatile, Loc, PrevSpec, DiagID,
 3883       isInvalid = DS.SetTypeQual(DeclSpec::TQ_restrict, Loc, PrevSpec, DiagID,
 3890         DS.SetTypeSpecError();
 3899       ParseTypeofSpecifier(DS);
 3903       ParseDecltypeSpecifier(DS);
 3923       ParseUnderlyingTypeSpecifier(DS);
 3935         ParseAtomicSpecifier(DS);
 3938       isInvalid = DS.SetTypeQual(DeclSpec::TQ_atomic, Loc, PrevSpec, DiagID,
 3963       ParseOpenCLQualifiers(DS.getAttributes());
 3970       if (DS.hasTypeSpecifier() || !getLangOpts().ObjC)
 3977         if (DS.SetTypeSpecType(DeclSpec::TST_typename, StartLoc, StartLoc,
 3982         DS.SetRangeEnd(EndLoc);
 3984         DS.SetTypeSpecError();
 3992     DS.SetRangeEnd(ConsumedEnd.isValid() ? ConsumedEnd : Tok.getLocation());
 4004                                  SourceRange(Loc, DS.getEndLoc()));