Lines Matching refs:DeclSpec
186 DeclSpec *MethodQualifiers) { in getFunction()
187 assert(!(MethodQualifiers && MethodQualifiers->getTypeQualifiers() & DeclSpec::TQ_atomic) && in getFunction()
222 I.Fun.MethodQualifiers = new DeclSpec(attrs.getPool().getFactory()); in getFunction()
224 [&](DeclSpec::TQ TypeQual, StringRef PrintName, SourceLocation SL) { in getFunction()
412 return getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static || in isStaticMember()
423 void DeclSpec::forEachCVRUQualifier( in forEachCVRUQualifier()
435 void DeclSpec::forEachQualifier( in forEachQualifier()
441 bool DeclSpec::hasTagDefinition() const { in hasTagDefinition()
450 unsigned DeclSpec::getParsedSpecifiers() const { in getParsedSpecifiers()
472 PrevSpec = DeclSpec::getSpecifierName(TPrev); in BadSpecifier()
481 const char *DeclSpec::getSpecifierName(DeclSpec::SCS S) { in getSpecifierName()
483 case DeclSpec::SCS_unspecified: return "unspecified"; in getSpecifierName()
484 case DeclSpec::SCS_typedef: return "typedef"; in getSpecifierName()
485 case DeclSpec::SCS_extern: return "extern"; in getSpecifierName()
486 case DeclSpec::SCS_static: return "static"; in getSpecifierName()
487 case DeclSpec::SCS_auto: return "auto"; in getSpecifierName()
488 case DeclSpec::SCS_register: return "register"; in getSpecifierName()
489 case DeclSpec::SCS_private_extern: return "__private_extern__"; in getSpecifierName()
490 case DeclSpec::SCS_mutable: return "mutable"; in getSpecifierName()
495 const char *DeclSpec::getSpecifierName(DeclSpec::TSCS S) { in getSpecifierName()
497 case DeclSpec::TSCS_unspecified: return "unspecified"; in getSpecifierName()
498 case DeclSpec::TSCS___thread: return "__thread"; in getSpecifierName()
499 case DeclSpec::TSCS_thread_local: return "thread_local"; in getSpecifierName()
500 case DeclSpec::TSCS__Thread_local: return "_Thread_local"; in getSpecifierName()
505 const char *DeclSpec::getSpecifierName(TypeSpecifierWidth W) { in getSpecifierName()
519 const char *DeclSpec::getSpecifierName(TSC C) { in getSpecifierName()
528 const char *DeclSpec::getSpecifierName(TypeSpecifierSign S) { in getSpecifierName()
540 const char *DeclSpec::getSpecifierName(DeclSpec::TST T, in getSpecifierName()
543 case DeclSpec::TST_unspecified: return "unspecified"; in getSpecifierName()
544 case DeclSpec::TST_void: return "void"; in getSpecifierName()
545 case DeclSpec::TST_char: return "char"; in getSpecifierName()
546 case DeclSpec::TST_wchar: return Policy.MSWChar ? "__wchar_t" : "wchar_t"; in getSpecifierName()
547 case DeclSpec::TST_char8: return "char8_t"; in getSpecifierName()
548 case DeclSpec::TST_char16: return "char16_t"; in getSpecifierName()
549 case DeclSpec::TST_char32: return "char32_t"; in getSpecifierName()
550 case DeclSpec::TST_int: return "int"; in getSpecifierName()
551 case DeclSpec::TST_int128: return "__int128"; in getSpecifierName()
552 case DeclSpec::TST_extint: return "_ExtInt"; in getSpecifierName()
553 case DeclSpec::TST_half: return "half"; in getSpecifierName()
554 case DeclSpec::TST_float: return "float"; in getSpecifierName()
555 case DeclSpec::TST_double: return "double"; in getSpecifierName()
556 case DeclSpec::TST_accum: return "_Accum"; in getSpecifierName()
557 case DeclSpec::TST_fract: return "_Fract"; in getSpecifierName()
558 case DeclSpec::TST_float16: return "_Float16"; in getSpecifierName()
559 case DeclSpec::TST_float128: return "__float128"; in getSpecifierName()
560 case DeclSpec::TST_bool: return Policy.Bool ? "bool" : "_Bool"; in getSpecifierName()
561 case DeclSpec::TST_decimal32: return "_Decimal32"; in getSpecifierName()
562 case DeclSpec::TST_decimal64: return "_Decimal64"; in getSpecifierName()
563 case DeclSpec::TST_decimal128: return "_Decimal128"; in getSpecifierName()
564 case DeclSpec::TST_enum: return "enum"; in getSpecifierName()
565 case DeclSpec::TST_class: return "class"; in getSpecifierName()
566 case DeclSpec::TST_union: return "union"; in getSpecifierName()
567 case DeclSpec::TST_struct: return "struct"; in getSpecifierName()
568 case DeclSpec::TST_interface: return "__interface"; in getSpecifierName()
569 case DeclSpec::TST_typename: return "type-name"; in getSpecifierName()
570 case DeclSpec::TST_typeofType: in getSpecifierName()
571 case DeclSpec::TST_typeofExpr: return "typeof"; in getSpecifierName()
572 case DeclSpec::TST_auto: return "auto"; in getSpecifierName()
573 case DeclSpec::TST_auto_type: return "__auto_type"; in getSpecifierName()
574 case DeclSpec::TST_decltype: return "(decltype)"; in getSpecifierName()
575 case DeclSpec::TST_decltype_auto: return "decltype(auto)"; in getSpecifierName()
576 case DeclSpec::TST_underlyingType: return "__underlying_type"; in getSpecifierName()
577 case DeclSpec::TST_unknown_anytype: return "__unknown_anytype"; in getSpecifierName()
578 case DeclSpec::TST_atomic: return "_Atomic"; in getSpecifierName()
579 case DeclSpec::TST_BFloat16: return "__bf16"; in getSpecifierName()
581 case DeclSpec::TST_##ImgType##_t: \ in getSpecifierName()
584 case DeclSpec::TST_error: return "(error)"; in getSpecifierName()
589 const char *DeclSpec::getSpecifierName(ConstexprSpecKind C) { in getSpecifierName()
603 const char *DeclSpec::getSpecifierName(TQ T) { in getSpecifierName()
605 case DeclSpec::TQ_unspecified: return "unspecified"; in getSpecifierName()
606 case DeclSpec::TQ_const: return "const"; in getSpecifierName()
607 case DeclSpec::TQ_restrict: return "restrict"; in getSpecifierName()
608 case DeclSpec::TQ_volatile: return "volatile"; in getSpecifierName()
609 case DeclSpec::TQ_atomic: return "_Atomic"; in getSpecifierName()
610 case DeclSpec::TQ_unaligned: return "__unaligned"; in getSpecifierName()
615 bool DeclSpec::SetStorageClassSpec(Sema &S, SCS SC, SourceLocation Loc, in SetStorageClassSpec()
677 bool DeclSpec::SetStorageClassSpecThread(TSCS TSC, SourceLocation Loc, in SetStorageClassSpecThread()
691 bool DeclSpec::SetTypeSpecWidth(TypeSpecifierWidth W, SourceLocation Loc, in SetTypeSpecWidth()
708 bool DeclSpec::SetTypeSpecComplex(TSC C, SourceLocation Loc, in SetTypeSpecComplex()
718 bool DeclSpec::SetTypeSpecSign(TypeSpecifierSign S, SourceLocation Loc, in SetTypeSpecSign()
727 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc, in SetTypeSpecType()
735 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation TagKwLoc, in SetTypeSpecType()
746 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeSpecType()
758 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc, in SetTypeSpecType()
768 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeSpecType()
780 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc, in SetTypeSpecType()
788 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation TagKwLoc, in SetTypeSpecType()
800 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeSpecType()
812 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc, const char *&PrevSpec, in SetTypeSpecType()
821 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc, in SetTypeSpecType()
830 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeSpecType()
845 bool DeclSpec::SetTypeSpecSat(SourceLocation Loc, const char *&PrevSpec, in SetTypeSpecSat()
858 bool DeclSpec::SetTypeAltiVecVector(bool isAltiVecVector, SourceLocation Loc, in SetTypeAltiVecVector()
864 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeAltiVecVector()
873 bool DeclSpec::SetTypePipe(bool isPipe, SourceLocation Loc, in SetTypePipe()
879 PrevSpec = DeclSpec::getSpecifierName((TST)TypeSpecType, Policy); in SetTypePipe()
890 bool DeclSpec::SetTypeAltiVecPixel(bool isAltiVecPixel, SourceLocation Loc, in SetTypeAltiVecPixel()
897 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeAltiVecPixel()
907 bool DeclSpec::SetTypeAltiVecBool(bool isAltiVecBool, SourceLocation Loc, in SetTypeAltiVecBool()
914 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeAltiVecBool()
924 bool DeclSpec::SetTypeSpecError() { in SetTypeSpecError()
932 bool DeclSpec::SetExtIntType(SourceLocation KWLoc, Expr *BitsExpr, in SetExtIntType()
940 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetExtIntType()
953 bool DeclSpec::SetTypeQual(TQ T, SourceLocation Loc, const char *&PrevSpec, in SetTypeQual()
969 bool DeclSpec::SetTypeQual(TQ T, SourceLocation Loc) { in SetTypeQual()
984 bool DeclSpec::setFunctionSpecInline(SourceLocation Loc, const char *&PrevSpec, in setFunctionSpecInline()
998 bool DeclSpec::setFunctionSpecForceInline(SourceLocation Loc, const char *&PrevSpec, in setFunctionSpecForceInline()
1010 bool DeclSpec::setFunctionSpecVirtual(SourceLocation Loc, in setFunctionSpecVirtual()
1025 bool DeclSpec::setFunctionSpecExplicit(SourceLocation Loc, in setFunctionSpecExplicit()
1044 bool DeclSpec::setFunctionSpecNoreturn(SourceLocation Loc, in setFunctionSpecNoreturn()
1059 bool DeclSpec::SetFriendSpec(SourceLocation Loc, const char *&PrevSpec, in SetFriendSpec()
1077 bool DeclSpec::setModulePrivateSpec(SourceLocation Loc, const char *&PrevSpec, in setModulePrivateSpec()
1089 bool DeclSpec::SetConstexprSpec(ConstexprSpecKind ConstexprKind, in SetConstexprSpec()
1100 void DeclSpec::SaveWrittenBuiltinSpecs() { in SaveWrittenBuiltinSpecs()
1112 void DeclSpec::Finish(Sema &S, const PrintingPolicy &Policy) { in Finish()
1324 << DeclSpec::getSpecifierName(getThreadStorageClassSpec()) in Finish()
1329 << DeclSpec::getSpecifierName(getStorageClassSpec()) in Finish()
1376 if (DeclSpec::SCS SC = getStorageClassSpec()) { in Finish()
1382 if (DeclSpec::TSCS TSC = getThreadStorageClassSpec()) { in Finish()
1434 bool DeclSpec::isMissingDeclaratorOk() { in isMissingDeclaratorOk()
1437 StorageClassSpec != DeclSpec::SCS_typedef; in isMissingDeclaratorOk()