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()
418 return getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static || in isStaticMember()
442 void DeclSpec::forEachCVRUQualifier( in forEachCVRUQualifier()
454 void DeclSpec::forEachQualifier( in forEachQualifier()
460 bool DeclSpec::hasTagDefinition() const { in hasTagDefinition()
469 unsigned DeclSpec::getParsedSpecifiers() const { in getParsedSpecifiers()
491 PrevSpec = DeclSpec::getSpecifierName(TPrev); in BadSpecifier()
500 const char *DeclSpec::getSpecifierName(DeclSpec::SCS S) { in getSpecifierName()
502 case DeclSpec::SCS_unspecified: return "unspecified"; in getSpecifierName()
503 case DeclSpec::SCS_typedef: return "typedef"; in getSpecifierName()
504 case DeclSpec::SCS_extern: return "extern"; in getSpecifierName()
505 case DeclSpec::SCS_static: return "static"; in getSpecifierName()
506 case DeclSpec::SCS_auto: return "auto"; in getSpecifierName()
507 case DeclSpec::SCS_register: return "register"; in getSpecifierName()
508 case DeclSpec::SCS_private_extern: return "__private_extern__"; in getSpecifierName()
509 case DeclSpec::SCS_mutable: return "mutable"; in getSpecifierName()
514 const char *DeclSpec::getSpecifierName(DeclSpec::TSCS S) { in getSpecifierName()
516 case DeclSpec::TSCS_unspecified: return "unspecified"; in getSpecifierName()
517 case DeclSpec::TSCS___thread: return "__thread"; in getSpecifierName()
518 case DeclSpec::TSCS_thread_local: return "thread_local"; in getSpecifierName()
519 case DeclSpec::TSCS__Thread_local: return "_Thread_local"; in getSpecifierName()
524 const char *DeclSpec::getSpecifierName(TypeSpecifierWidth W) { in getSpecifierName()
538 const char *DeclSpec::getSpecifierName(TSC C) { in getSpecifierName()
547 const char *DeclSpec::getSpecifierName(TypeSpecifierSign S) { in getSpecifierName()
559 const char *DeclSpec::getSpecifierName(DeclSpec::TST T, in getSpecifierName()
562 case DeclSpec::TST_unspecified: return "unspecified"; in getSpecifierName()
563 case DeclSpec::TST_void: return "void"; in getSpecifierName()
564 case DeclSpec::TST_char: return "char"; in getSpecifierName()
565 case DeclSpec::TST_wchar: return Policy.MSWChar ? "__wchar_t" : "wchar_t"; in getSpecifierName()
566 case DeclSpec::TST_char8: return "char8_t"; in getSpecifierName()
567 case DeclSpec::TST_char16: return "char16_t"; in getSpecifierName()
568 case DeclSpec::TST_char32: return "char32_t"; in getSpecifierName()
569 case DeclSpec::TST_int: return "int"; in getSpecifierName()
570 case DeclSpec::TST_int128: return "__int128"; in getSpecifierName()
571 case DeclSpec::TST_bitint: return "_BitInt"; in getSpecifierName()
572 case DeclSpec::TST_half: return "half"; in getSpecifierName()
573 case DeclSpec::TST_float: return "float"; in getSpecifierName()
574 case DeclSpec::TST_double: return "double"; in getSpecifierName()
575 case DeclSpec::TST_accum: return "_Accum"; in getSpecifierName()
576 case DeclSpec::TST_fract: return "_Fract"; in getSpecifierName()
577 case DeclSpec::TST_float16: return "_Float16"; in getSpecifierName()
578 case DeclSpec::TST_float128: return "__float128"; in getSpecifierName()
579 case DeclSpec::TST_ibm128: return "__ibm128"; in getSpecifierName()
580 case DeclSpec::TST_bool: return Policy.Bool ? "bool" : "_Bool"; in getSpecifierName()
581 case DeclSpec::TST_decimal32: return "_Decimal32"; in getSpecifierName()
582 case DeclSpec::TST_decimal64: return "_Decimal64"; in getSpecifierName()
583 case DeclSpec::TST_decimal128: return "_Decimal128"; in getSpecifierName()
584 case DeclSpec::TST_enum: return "enum"; in getSpecifierName()
585 case DeclSpec::TST_class: return "class"; in getSpecifierName()
586 case DeclSpec::TST_union: return "union"; in getSpecifierName()
587 case DeclSpec::TST_struct: return "struct"; in getSpecifierName()
588 case DeclSpec::TST_interface: return "__interface"; in getSpecifierName()
589 case DeclSpec::TST_typename: return "type-name"; in getSpecifierName()
590 case DeclSpec::TST_typename_pack_indexing: in getSpecifierName()
592 case DeclSpec::TST_typeofType: in getSpecifierName()
593 case DeclSpec::TST_typeofExpr: return "typeof"; in getSpecifierName()
594 case DeclSpec::TST_typeof_unqualType: in getSpecifierName()
595 case DeclSpec::TST_typeof_unqualExpr: return "typeof_unqual"; in getSpecifierName()
596 case DeclSpec::TST_auto: return "auto"; in getSpecifierName()
597 case DeclSpec::TST_auto_type: return "__auto_type"; in getSpecifierName()
598 case DeclSpec::TST_decltype: return "(decltype)"; in getSpecifierName()
599 case DeclSpec::TST_decltype_auto: return "decltype(auto)"; in getSpecifierName()
601 case DeclSpec::TST_##Trait: \ in getSpecifierName()
604 case DeclSpec::TST_unknown_anytype: return "__unknown_anytype"; in getSpecifierName()
605 case DeclSpec::TST_atomic: return "_Atomic"; in getSpecifierName()
606 case DeclSpec::TST_BFloat16: return "__bf16"; in getSpecifierName()
608 case DeclSpec::TST_##ImgType##_t: \ in getSpecifierName()
611 case DeclSpec::TST_error: return "(error)"; in getSpecifierName()
616 const char *DeclSpec::getSpecifierName(ConstexprSpecKind C) { in getSpecifierName()
630 const char *DeclSpec::getSpecifierName(TQ T) { in getSpecifierName()
632 case DeclSpec::TQ_unspecified: return "unspecified"; in getSpecifierName()
633 case DeclSpec::TQ_const: return "const"; in getSpecifierName()
634 case DeclSpec::TQ_restrict: return "restrict"; in getSpecifierName()
635 case DeclSpec::TQ_volatile: return "volatile"; in getSpecifierName()
636 case DeclSpec::TQ_atomic: return "_Atomic"; in getSpecifierName()
637 case DeclSpec::TQ_unaligned: return "__unaligned"; in getSpecifierName()
642 bool DeclSpec::SetStorageClassSpec(Sema &S, SCS SC, SourceLocation Loc, in SetStorageClassSpec()
704 bool DeclSpec::SetStorageClassSpecThread(TSCS TSC, SourceLocation Loc, in SetStorageClassSpecThread()
718 bool DeclSpec::SetTypeSpecWidth(TypeSpecifierWidth W, SourceLocation Loc, in SetTypeSpecWidth()
735 bool DeclSpec::SetTypeSpecComplex(TSC C, SourceLocation Loc, in SetTypeSpecComplex()
745 bool DeclSpec::SetTypeSpecSign(TypeSpecifierSign S, SourceLocation Loc, in SetTypeSpecSign()
754 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc, in SetTypeSpecType()
762 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation TagKwLoc, in SetTypeSpecType()
773 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeSpecType()
794 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc, in SetTypeSpecType()
804 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeSpecType()
816 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc, in SetTypeSpecType()
824 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation TagKwLoc, in SetTypeSpecType()
836 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeSpecType()
848 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc, const char *&PrevSpec, in SetTypeSpecType()
857 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc, in SetTypeSpecType()
866 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeSpecType()
881 bool DeclSpec::SetTypeSpecSat(SourceLocation Loc, const char *&PrevSpec, in SetTypeSpecSat()
894 bool DeclSpec::SetTypeAltiVecVector(bool isAltiVecVector, SourceLocation Loc, in SetTypeAltiVecVector()
900 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeAltiVecVector()
909 bool DeclSpec::SetTypePipe(bool isPipe, SourceLocation Loc, in SetTypePipe()
915 PrevSpec = DeclSpec::getSpecifierName((TST)TypeSpecType, Policy); in SetTypePipe()
926 bool DeclSpec::SetTypeAltiVecPixel(bool isAltiVecPixel, SourceLocation Loc, in SetTypeAltiVecPixel()
933 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeAltiVecPixel()
943 bool DeclSpec::SetTypeAltiVecBool(bool isAltiVecBool, SourceLocation Loc, in SetTypeAltiVecBool()
950 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeAltiVecBool()
960 bool DeclSpec::SetTypeSpecError() { in SetTypeSpecError()
968 bool DeclSpec::SetBitIntType(SourceLocation KWLoc, Expr *BitsExpr, in SetBitIntType()
976 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetBitIntType()
989 void DeclSpec::SetPackIndexingExpr(SourceLocation EllipsisLoc, in SetPackIndexingExpr()
998 bool DeclSpec::SetTypeQual(TQ T, SourceLocation Loc, const char *&PrevSpec, in SetTypeQual()
1014 bool DeclSpec::SetTypeQual(TQ T, SourceLocation Loc) { in SetTypeQual()
1029 bool DeclSpec::setFunctionSpecInline(SourceLocation Loc, const char *&PrevSpec, in setFunctionSpecInline()
1043 bool DeclSpec::setFunctionSpecForceInline(SourceLocation Loc, const char *&PrevSpec, in setFunctionSpecForceInline()
1055 bool DeclSpec::setFunctionSpecVirtual(SourceLocation Loc, in setFunctionSpecVirtual()
1070 bool DeclSpec::setFunctionSpecExplicit(SourceLocation Loc, in setFunctionSpecExplicit()
1089 bool DeclSpec::setFunctionSpecNoreturn(SourceLocation Loc, in setFunctionSpecNoreturn()
1104 bool DeclSpec::SetFriendSpec(SourceLocation Loc, const char *&PrevSpec, in SetFriendSpec()
1117 bool DeclSpec::setModulePrivateSpec(SourceLocation Loc, const char *&PrevSpec, in setModulePrivateSpec()
1129 bool DeclSpec::SetConstexprSpec(ConstexprSpecKind ConstexprKind, in SetConstexprSpec()
1140 void DeclSpec::SaveWrittenBuiltinSpecs() { in SaveWrittenBuiltinSpecs()
1151 void DeclSpec::Finish(Sema &S, const PrintingPolicy &Policy) { in Finish()
1373 << DeclSpec::getSpecifierName(getThreadStorageClassSpec()) in Finish()
1378 << DeclSpec::getSpecifierName(getStorageClassSpec()) in Finish()
1387 << DeclSpec::getSpecifierName(getThreadStorageClassSpec()) in Finish()
1396 << DeclSpec::getSpecifierName(getStorageClassSpec()) in Finish()
1440 if (DeclSpec::SCS SC = getStorageClassSpec()) { in Finish()
1446 if (DeclSpec::TSCS TSC = getThreadStorageClassSpec()) { in Finish()
1498 bool DeclSpec::isMissingDeclaratorOk() { in isMissingDeclaratorOk()
1501 StorageClassSpec != DeclSpec::SCS_typedef; in isMissingDeclaratorOk()