Lines Matching refs:DeclSpec

186                                              DeclSpec *MethodQualifiers) {  in getFunction()
187 assert(!(MethodQualifiers && MethodQualifiers->getTypeQualifiers() & DeclSpec::TQ_atomic) && in getFunction()
223 I.Fun.MethodQualifiers = new DeclSpec(attrs.getPool().getFactory()); in getFunction()
225 [&](DeclSpec::TQ TypeQual, StringRef PrintName, SourceLocation SL) { in getFunction()
413 return getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static || in isStaticMember()
424 void DeclSpec::forEachCVRUQualifier( in forEachCVRUQualifier()
436 void DeclSpec::forEachQualifier( in forEachQualifier()
442 bool DeclSpec::hasTagDefinition() const { in hasTagDefinition()
451 unsigned DeclSpec::getParsedSpecifiers() const { in getParsedSpecifiers()
473 PrevSpec = DeclSpec::getSpecifierName(TPrev); in BadSpecifier()
482 const char *DeclSpec::getSpecifierName(DeclSpec::SCS S) { in getSpecifierName()
484 case DeclSpec::SCS_unspecified: return "unspecified"; in getSpecifierName()
485 case DeclSpec::SCS_typedef: return "typedef"; in getSpecifierName()
486 case DeclSpec::SCS_extern: return "extern"; in getSpecifierName()
487 case DeclSpec::SCS_static: return "static"; in getSpecifierName()
488 case DeclSpec::SCS_auto: return "auto"; in getSpecifierName()
489 case DeclSpec::SCS_register: return "register"; in getSpecifierName()
490 case DeclSpec::SCS_private_extern: return "__private_extern__"; in getSpecifierName()
491 case DeclSpec::SCS_mutable: return "mutable"; in getSpecifierName()
496 const char *DeclSpec::getSpecifierName(DeclSpec::TSCS S) { in getSpecifierName()
498 case DeclSpec::TSCS_unspecified: return "unspecified"; in getSpecifierName()
499 case DeclSpec::TSCS___thread: return "__thread"; in getSpecifierName()
500 case DeclSpec::TSCS_thread_local: return "thread_local"; in getSpecifierName()
501 case DeclSpec::TSCS__Thread_local: return "_Thread_local"; in getSpecifierName()
506 const char *DeclSpec::getSpecifierName(TypeSpecifierWidth W) { in getSpecifierName()
520 const char *DeclSpec::getSpecifierName(TSC C) { in getSpecifierName()
529 const char *DeclSpec::getSpecifierName(TypeSpecifierSign S) { in getSpecifierName()
541 const char *DeclSpec::getSpecifierName(DeclSpec::TST T, in getSpecifierName()
544 case DeclSpec::TST_unspecified: return "unspecified"; in getSpecifierName()
545 case DeclSpec::TST_void: return "void"; in getSpecifierName()
546 case DeclSpec::TST_char: return "char"; in getSpecifierName()
547 case DeclSpec::TST_wchar: return Policy.MSWChar ? "__wchar_t" : "wchar_t"; in getSpecifierName()
548 case DeclSpec::TST_char8: return "char8_t"; in getSpecifierName()
549 case DeclSpec::TST_char16: return "char16_t"; in getSpecifierName()
550 case DeclSpec::TST_char32: return "char32_t"; in getSpecifierName()
551 case DeclSpec::TST_int: return "int"; in getSpecifierName()
552 case DeclSpec::TST_int128: return "__int128"; in getSpecifierName()
553 case DeclSpec::TST_extint: return "_ExtInt"; in getSpecifierName()
554 case DeclSpec::TST_half: return "half"; in getSpecifierName()
555 case DeclSpec::TST_float: return "float"; in getSpecifierName()
556 case DeclSpec::TST_double: return "double"; in getSpecifierName()
557 case DeclSpec::TST_accum: return "_Accum"; in getSpecifierName()
558 case DeclSpec::TST_fract: return "_Fract"; in getSpecifierName()
559 case DeclSpec::TST_float16: return "_Float16"; in getSpecifierName()
560 case DeclSpec::TST_float128: return "__float128"; in getSpecifierName()
561 case DeclSpec::TST_bool: return Policy.Bool ? "bool" : "_Bool"; in getSpecifierName()
562 case DeclSpec::TST_decimal32: return "_Decimal32"; in getSpecifierName()
563 case DeclSpec::TST_decimal64: return "_Decimal64"; in getSpecifierName()
564 case DeclSpec::TST_decimal128: return "_Decimal128"; in getSpecifierName()
565 case DeclSpec::TST_enum: return "enum"; in getSpecifierName()
566 case DeclSpec::TST_class: return "class"; in getSpecifierName()
567 case DeclSpec::TST_union: return "union"; in getSpecifierName()
568 case DeclSpec::TST_struct: return "struct"; in getSpecifierName()
569 case DeclSpec::TST_interface: return "__interface"; in getSpecifierName()
570 case DeclSpec::TST_typename: return "type-name"; in getSpecifierName()
571 case DeclSpec::TST_typeofType: in getSpecifierName()
572 case DeclSpec::TST_typeofExpr: return "typeof"; in getSpecifierName()
573 case DeclSpec::TST_auto: return "auto"; in getSpecifierName()
574 case DeclSpec::TST_auto_type: return "__auto_type"; in getSpecifierName()
575 case DeclSpec::TST_decltype: return "(decltype)"; in getSpecifierName()
576 case DeclSpec::TST_decltype_auto: return "decltype(auto)"; in getSpecifierName()
577 case DeclSpec::TST_underlyingType: return "__underlying_type"; in getSpecifierName()
578 case DeclSpec::TST_unknown_anytype: return "__unknown_anytype"; in getSpecifierName()
579 case DeclSpec::TST_atomic: return "_Atomic"; in getSpecifierName()
580 case DeclSpec::TST_BFloat16: return "__bf16"; in getSpecifierName()
582 case DeclSpec::TST_##ImgType##_t: \ in getSpecifierName()
585 case DeclSpec::TST_error: return "(error)"; in getSpecifierName()
590 const char *DeclSpec::getSpecifierName(ConstexprSpecKind C) { in getSpecifierName()
604 const char *DeclSpec::getSpecifierName(TQ T) { in getSpecifierName()
606 case DeclSpec::TQ_unspecified: return "unspecified"; in getSpecifierName()
607 case DeclSpec::TQ_const: return "const"; in getSpecifierName()
608 case DeclSpec::TQ_restrict: return "restrict"; in getSpecifierName()
609 case DeclSpec::TQ_volatile: return "volatile"; in getSpecifierName()
610 case DeclSpec::TQ_atomic: return "_Atomic"; in getSpecifierName()
611 case DeclSpec::TQ_unaligned: return "__unaligned"; in getSpecifierName()
616 bool DeclSpec::SetStorageClassSpec(Sema &S, SCS SC, SourceLocation Loc, in SetStorageClassSpec()
679 bool DeclSpec::SetStorageClassSpecThread(TSCS TSC, SourceLocation Loc, in SetStorageClassSpecThread()
693 bool DeclSpec::SetTypeSpecWidth(TypeSpecifierWidth W, SourceLocation Loc, in SetTypeSpecWidth()
710 bool DeclSpec::SetTypeSpecComplex(TSC C, SourceLocation Loc, in SetTypeSpecComplex()
720 bool DeclSpec::SetTypeSpecSign(TypeSpecifierSign S, SourceLocation Loc, in SetTypeSpecSign()
729 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc, in SetTypeSpecType()
737 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation TagKwLoc, in SetTypeSpecType()
748 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeSpecType()
760 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc, in SetTypeSpecType()
770 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeSpecType()
782 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc, in SetTypeSpecType()
790 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation TagKwLoc, in SetTypeSpecType()
802 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeSpecType()
814 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc, const char *&PrevSpec, in SetTypeSpecType()
823 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc, in SetTypeSpecType()
832 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeSpecType()
847 bool DeclSpec::SetTypeSpecSat(SourceLocation Loc, const char *&PrevSpec, in SetTypeSpecSat()
860 bool DeclSpec::SetTypeAltiVecVector(bool isAltiVecVector, SourceLocation Loc, in SetTypeAltiVecVector()
866 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeAltiVecVector()
875 bool DeclSpec::SetTypePipe(bool isPipe, SourceLocation Loc, in SetTypePipe()
881 PrevSpec = DeclSpec::getSpecifierName((TST)TypeSpecType, Policy); in SetTypePipe()
892 bool DeclSpec::SetTypeAltiVecPixel(bool isAltiVecPixel, SourceLocation Loc, in SetTypeAltiVecPixel()
899 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeAltiVecPixel()
909 bool DeclSpec::SetTypeAltiVecBool(bool isAltiVecBool, SourceLocation Loc, in SetTypeAltiVecBool()
916 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeAltiVecBool()
926 bool DeclSpec::SetTypeSpecError() { in SetTypeSpecError()
934 bool DeclSpec::SetExtIntType(SourceLocation KWLoc, Expr *BitsExpr, in SetExtIntType()
942 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetExtIntType()
955 bool DeclSpec::SetTypeQual(TQ T, SourceLocation Loc, const char *&PrevSpec, in SetTypeQual()
971 bool DeclSpec::SetTypeQual(TQ T, SourceLocation Loc) { in SetTypeQual()
986 bool DeclSpec::setFunctionSpecInline(SourceLocation Loc, const char *&PrevSpec, in setFunctionSpecInline()
1000 bool DeclSpec::setFunctionSpecForceInline(SourceLocation Loc, const char *&PrevSpec, in setFunctionSpecForceInline()
1012 bool DeclSpec::setFunctionSpecVirtual(SourceLocation Loc, in setFunctionSpecVirtual()
1027 bool DeclSpec::setFunctionSpecExplicit(SourceLocation Loc, in setFunctionSpecExplicit()
1046 bool DeclSpec::setFunctionSpecNoreturn(SourceLocation Loc, in setFunctionSpecNoreturn()
1061 bool DeclSpec::SetFriendSpec(SourceLocation Loc, const char *&PrevSpec, in SetFriendSpec()
1079 bool DeclSpec::setModulePrivateSpec(SourceLocation Loc, const char *&PrevSpec, in setModulePrivateSpec()
1091 bool DeclSpec::SetConstexprSpec(ConstexprSpecKind ConstexprKind, in SetConstexprSpec()
1102 void DeclSpec::SaveWrittenBuiltinSpecs() { in SaveWrittenBuiltinSpecs()
1114 void DeclSpec::Finish(Sema &S, const PrintingPolicy &Policy) { in Finish()
1326 << DeclSpec::getSpecifierName(getThreadStorageClassSpec()) in Finish()
1331 << DeclSpec::getSpecifierName(getStorageClassSpec()) in Finish()
1378 if (DeclSpec::SCS SC = getStorageClassSpec()) { in Finish()
1384 if (DeclSpec::TSCS TSC = getThreadStorageClassSpec()) { in Finish()
1436 bool DeclSpec::isMissingDeclaratorOk() { in isMissingDeclaratorOk()
1439 StorageClassSpec != DeclSpec::SCS_typedef; in isMissingDeclaratorOk()