Lines Matching refs:DeclSpec

187                                              DeclSpec *MethodQualifiers) {  in getFunction()
188 assert(!(MethodQualifiers && MethodQualifiers->getTypeQualifiers() & DeclSpec::TQ_atomic) && in getFunction()
224 I.Fun.MethodQualifiers = new DeclSpec(attrs.getPool().getFactory()); in getFunction()
226 [&](DeclSpec::TQ TypeQual, StringRef PrintName, SourceLocation SL) { in getFunction()
417 return getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static || in isStaticMember()
440 void DeclSpec::forEachCVRUQualifier( in forEachCVRUQualifier()
452 void DeclSpec::forEachQualifier( in forEachQualifier()
458 bool DeclSpec::hasTagDefinition() const { in hasTagDefinition()
467 unsigned DeclSpec::getParsedSpecifiers() const { in getParsedSpecifiers()
489 PrevSpec = DeclSpec::getSpecifierName(TPrev); in BadSpecifier()
498 const char *DeclSpec::getSpecifierName(DeclSpec::SCS S) { in getSpecifierName()
500 case DeclSpec::SCS_unspecified: return "unspecified"; in getSpecifierName()
501 case DeclSpec::SCS_typedef: return "typedef"; in getSpecifierName()
502 case DeclSpec::SCS_extern: return "extern"; in getSpecifierName()
503 case DeclSpec::SCS_static: return "static"; in getSpecifierName()
504 case DeclSpec::SCS_auto: return "auto"; in getSpecifierName()
505 case DeclSpec::SCS_register: return "register"; in getSpecifierName()
506 case DeclSpec::SCS_private_extern: return "__private_extern__"; in getSpecifierName()
507 case DeclSpec::SCS_mutable: return "mutable"; in getSpecifierName()
512 const char *DeclSpec::getSpecifierName(DeclSpec::TSCS S) { in getSpecifierName()
514 case DeclSpec::TSCS_unspecified: return "unspecified"; in getSpecifierName()
515 case DeclSpec::TSCS___thread: return "__thread"; in getSpecifierName()
516 case DeclSpec::TSCS_thread_local: return "thread_local"; in getSpecifierName()
517 case DeclSpec::TSCS__Thread_local: return "_Thread_local"; in getSpecifierName()
522 const char *DeclSpec::getSpecifierName(TypeSpecifierWidth W) { in getSpecifierName()
536 const char *DeclSpec::getSpecifierName(TSC C) { in getSpecifierName()
545 const char *DeclSpec::getSpecifierName(TypeSpecifierSign S) { in getSpecifierName()
557 const char *DeclSpec::getSpecifierName(DeclSpec::TST T, in getSpecifierName()
560 case DeclSpec::TST_unspecified: return "unspecified"; in getSpecifierName()
561 case DeclSpec::TST_void: return "void"; in getSpecifierName()
562 case DeclSpec::TST_char: return "char"; in getSpecifierName()
563 case DeclSpec::TST_wchar: return Policy.MSWChar ? "__wchar_t" : "wchar_t"; in getSpecifierName()
564 case DeclSpec::TST_char8: return "char8_t"; in getSpecifierName()
565 case DeclSpec::TST_char16: return "char16_t"; in getSpecifierName()
566 case DeclSpec::TST_char32: return "char32_t"; in getSpecifierName()
567 case DeclSpec::TST_int: return "int"; in getSpecifierName()
568 case DeclSpec::TST_int128: return "__int128"; in getSpecifierName()
569 case DeclSpec::TST_bitint: return "_BitInt"; in getSpecifierName()
570 case DeclSpec::TST_half: return "half"; in getSpecifierName()
571 case DeclSpec::TST_float: return "float"; in getSpecifierName()
572 case DeclSpec::TST_double: return "double"; in getSpecifierName()
573 case DeclSpec::TST_accum: return "_Accum"; in getSpecifierName()
574 case DeclSpec::TST_fract: return "_Fract"; in getSpecifierName()
575 case DeclSpec::TST_float16: return "_Float16"; in getSpecifierName()
576 case DeclSpec::TST_float128: return "__float128"; in getSpecifierName()
577 case DeclSpec::TST_ibm128: return "__ibm128"; in getSpecifierName()
578 case DeclSpec::TST_bool: return Policy.Bool ? "bool" : "_Bool"; in getSpecifierName()
579 case DeclSpec::TST_decimal32: return "_Decimal32"; in getSpecifierName()
580 case DeclSpec::TST_decimal64: return "_Decimal64"; in getSpecifierName()
581 case DeclSpec::TST_decimal128: return "_Decimal128"; in getSpecifierName()
582 case DeclSpec::TST_enum: return "enum"; in getSpecifierName()
583 case DeclSpec::TST_class: return "class"; in getSpecifierName()
584 case DeclSpec::TST_union: return "union"; in getSpecifierName()
585 case DeclSpec::TST_struct: return "struct"; in getSpecifierName()
586 case DeclSpec::TST_interface: return "__interface"; in getSpecifierName()
587 case DeclSpec::TST_typename: return "type-name"; in getSpecifierName()
588 case DeclSpec::TST_typeofType: in getSpecifierName()
589 case DeclSpec::TST_typeofExpr: return "typeof"; in getSpecifierName()
590 case DeclSpec::TST_typeof_unqualType: in getSpecifierName()
591 case DeclSpec::TST_typeof_unqualExpr: return "typeof_unqual"; in getSpecifierName()
592 case DeclSpec::TST_auto: return "auto"; in getSpecifierName()
593 case DeclSpec::TST_auto_type: return "__auto_type"; in getSpecifierName()
594 case DeclSpec::TST_decltype: return "(decltype)"; in getSpecifierName()
595 case DeclSpec::TST_decltype_auto: return "decltype(auto)"; in getSpecifierName()
597 case DeclSpec::TST_##Trait: \ in getSpecifierName()
600 case DeclSpec::TST_unknown_anytype: return "__unknown_anytype"; in getSpecifierName()
601 case DeclSpec::TST_atomic: return "_Atomic"; in getSpecifierName()
602 case DeclSpec::TST_BFloat16: return "__bf16"; in getSpecifierName()
604 case DeclSpec::TST_##ImgType##_t: \ in getSpecifierName()
607 case DeclSpec::TST_error: return "(error)"; in getSpecifierName()
612 const char *DeclSpec::getSpecifierName(ConstexprSpecKind C) { in getSpecifierName()
626 const char *DeclSpec::getSpecifierName(TQ T) { in getSpecifierName()
628 case DeclSpec::TQ_unspecified: return "unspecified"; in getSpecifierName()
629 case DeclSpec::TQ_const: return "const"; in getSpecifierName()
630 case DeclSpec::TQ_restrict: return "restrict"; in getSpecifierName()
631 case DeclSpec::TQ_volatile: return "volatile"; in getSpecifierName()
632 case DeclSpec::TQ_atomic: return "_Atomic"; in getSpecifierName()
633 case DeclSpec::TQ_unaligned: return "__unaligned"; in getSpecifierName()
638 bool DeclSpec::SetStorageClassSpec(Sema &S, SCS SC, SourceLocation Loc, in SetStorageClassSpec()
700 bool DeclSpec::SetStorageClassSpecThread(TSCS TSC, SourceLocation Loc, in SetStorageClassSpecThread()
714 bool DeclSpec::SetTypeSpecWidth(TypeSpecifierWidth W, SourceLocation Loc, in SetTypeSpecWidth()
731 bool DeclSpec::SetTypeSpecComplex(TSC C, SourceLocation Loc, in SetTypeSpecComplex()
741 bool DeclSpec::SetTypeSpecSign(TypeSpecifierSign S, SourceLocation Loc, in SetTypeSpecSign()
750 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc, in SetTypeSpecType()
758 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation TagKwLoc, in SetTypeSpecType()
769 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeSpecType()
781 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc, in SetTypeSpecType()
791 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeSpecType()
803 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc, in SetTypeSpecType()
811 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation TagKwLoc, in SetTypeSpecType()
823 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeSpecType()
835 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc, const char *&PrevSpec, in SetTypeSpecType()
844 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc, in SetTypeSpecType()
853 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeSpecType()
868 bool DeclSpec::SetTypeSpecSat(SourceLocation Loc, const char *&PrevSpec, in SetTypeSpecSat()
881 bool DeclSpec::SetTypeAltiVecVector(bool isAltiVecVector, SourceLocation Loc, in SetTypeAltiVecVector()
887 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeAltiVecVector()
896 bool DeclSpec::SetTypePipe(bool isPipe, SourceLocation Loc, in SetTypePipe()
902 PrevSpec = DeclSpec::getSpecifierName((TST)TypeSpecType, Policy); in SetTypePipe()
913 bool DeclSpec::SetTypeAltiVecPixel(bool isAltiVecPixel, SourceLocation Loc, in SetTypeAltiVecPixel()
920 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeAltiVecPixel()
930 bool DeclSpec::SetTypeAltiVecBool(bool isAltiVecBool, SourceLocation Loc, in SetTypeAltiVecBool()
937 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeAltiVecBool()
947 bool DeclSpec::SetTypeSpecError() { in SetTypeSpecError()
955 bool DeclSpec::SetBitIntType(SourceLocation KWLoc, Expr *BitsExpr, in SetBitIntType()
963 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetBitIntType()
976 bool DeclSpec::SetTypeQual(TQ T, SourceLocation Loc, const char *&PrevSpec, in SetTypeQual()
992 bool DeclSpec::SetTypeQual(TQ T, SourceLocation Loc) { in SetTypeQual()
1007 bool DeclSpec::setFunctionSpecInline(SourceLocation Loc, const char *&PrevSpec, in setFunctionSpecInline()
1021 bool DeclSpec::setFunctionSpecForceInline(SourceLocation Loc, const char *&PrevSpec, in setFunctionSpecForceInline()
1033 bool DeclSpec::setFunctionSpecVirtual(SourceLocation Loc, in setFunctionSpecVirtual()
1048 bool DeclSpec::setFunctionSpecExplicit(SourceLocation Loc, in setFunctionSpecExplicit()
1067 bool DeclSpec::setFunctionSpecNoreturn(SourceLocation Loc, in setFunctionSpecNoreturn()
1082 bool DeclSpec::SetFriendSpec(SourceLocation Loc, const char *&PrevSpec, in SetFriendSpec()
1100 bool DeclSpec::setModulePrivateSpec(SourceLocation Loc, const char *&PrevSpec, in setModulePrivateSpec()
1112 bool DeclSpec::SetConstexprSpec(ConstexprSpecKind ConstexprKind, in SetConstexprSpec()
1123 void DeclSpec::SaveWrittenBuiltinSpecs() { in SaveWrittenBuiltinSpecs()
1134 void DeclSpec::Finish(Sema &S, const PrintingPolicy &Policy) { in Finish()
1353 << DeclSpec::getSpecifierName(getThreadStorageClassSpec()) in Finish()
1358 << DeclSpec::getSpecifierName(getStorageClassSpec()) in Finish()
1406 if (DeclSpec::SCS SC = getStorageClassSpec()) { in Finish()
1412 if (DeclSpec::TSCS TSC = getThreadStorageClassSpec()) { in Finish()
1464 bool DeclSpec::isMissingDeclaratorOk() { in isMissingDeclaratorOk()
1467 StorageClassSpec != DeclSpec::SCS_typedef; in isMissingDeclaratorOk()