Lines Matching refs:DeclSpec
176 DeclSpec *MethodQualifiers) { in getFunction()
177 assert(!(MethodQualifiers && MethodQualifiers->getTypeQualifiers() & DeclSpec::TQ_atomic) && in getFunction()
211 I.Fun.MethodQualifiers = new DeclSpec(attrs.getPool().getFactory()); in getFunction()
213 [&](DeclSpec::TQ TypeQual, StringRef PrintName, SourceLocation SL) { in getFunction()
399 return getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static || in isStaticMember()
410 void DeclSpec::forEachCVRUQualifier( in forEachCVRUQualifier()
422 void DeclSpec::forEachQualifier( in forEachQualifier()
428 bool DeclSpec::hasTagDefinition() const { in hasTagDefinition()
437 unsigned DeclSpec::getParsedSpecifiers() const { in getParsedSpecifiers()
459 PrevSpec = DeclSpec::getSpecifierName(TPrev); in BadSpecifier()
468 const char *DeclSpec::getSpecifierName(DeclSpec::SCS S) { in getSpecifierName()
470 case DeclSpec::SCS_unspecified: return "unspecified"; in getSpecifierName()
471 case DeclSpec::SCS_typedef: return "typedef"; in getSpecifierName()
472 case DeclSpec::SCS_extern: return "extern"; in getSpecifierName()
473 case DeclSpec::SCS_static: return "static"; in getSpecifierName()
474 case DeclSpec::SCS_auto: return "auto"; in getSpecifierName()
475 case DeclSpec::SCS_register: return "register"; in getSpecifierName()
476 case DeclSpec::SCS_private_extern: return "__private_extern__"; in getSpecifierName()
477 case DeclSpec::SCS_mutable: return "mutable"; in getSpecifierName()
482 const char *DeclSpec::getSpecifierName(DeclSpec::TSCS S) { in getSpecifierName()
484 case DeclSpec::TSCS_unspecified: return "unspecified"; in getSpecifierName()
485 case DeclSpec::TSCS___thread: return "__thread"; in getSpecifierName()
486 case DeclSpec::TSCS_thread_local: return "thread_local"; in getSpecifierName()
487 case DeclSpec::TSCS__Thread_local: return "_Thread_local"; in getSpecifierName()
492 const char *DeclSpec::getSpecifierName(TSW W) { in getSpecifierName()
502 const char *DeclSpec::getSpecifierName(TSC C) { in getSpecifierName()
512 const char *DeclSpec::getSpecifierName(TSS S) { in getSpecifierName()
521 const char *DeclSpec::getSpecifierName(DeclSpec::TST T, in getSpecifierName()
524 case DeclSpec::TST_unspecified: return "unspecified"; in getSpecifierName()
525 case DeclSpec::TST_void: return "void"; in getSpecifierName()
526 case DeclSpec::TST_char: return "char"; in getSpecifierName()
527 case DeclSpec::TST_wchar: return Policy.MSWChar ? "__wchar_t" : "wchar_t"; in getSpecifierName()
528 case DeclSpec::TST_char8: return "char8_t"; in getSpecifierName()
529 case DeclSpec::TST_char16: return "char16_t"; in getSpecifierName()
530 case DeclSpec::TST_char32: return "char32_t"; in getSpecifierName()
531 case DeclSpec::TST_int: return "int"; in getSpecifierName()
532 case DeclSpec::TST_int128: return "__int128"; in getSpecifierName()
533 case DeclSpec::TST_half: return "half"; in getSpecifierName()
534 case DeclSpec::TST_float: return "float"; in getSpecifierName()
535 case DeclSpec::TST_double: return "double"; in getSpecifierName()
536 case DeclSpec::TST_accum: return "_Accum"; in getSpecifierName()
537 case DeclSpec::TST_fract: return "_Fract"; in getSpecifierName()
538 case DeclSpec::TST_float16: return "_Float16"; in getSpecifierName()
539 case DeclSpec::TST_float128: return "__float128"; in getSpecifierName()
540 case DeclSpec::TST_bool: return Policy.Bool ? "bool" : "_Bool"; in getSpecifierName()
541 case DeclSpec::TST_decimal32: return "_Decimal32"; in getSpecifierName()
542 case DeclSpec::TST_decimal64: return "_Decimal64"; in getSpecifierName()
543 case DeclSpec::TST_decimal128: return "_Decimal128"; in getSpecifierName()
544 case DeclSpec::TST_enum: return "enum"; in getSpecifierName()
545 case DeclSpec::TST_class: return "class"; in getSpecifierName()
546 case DeclSpec::TST_union: return "union"; in getSpecifierName()
547 case DeclSpec::TST_struct: return "struct"; in getSpecifierName()
548 case DeclSpec::TST_interface: return "__interface"; in getSpecifierName()
549 case DeclSpec::TST_typename: return "type-name"; in getSpecifierName()
550 case DeclSpec::TST_typeofType: in getSpecifierName()
551 case DeclSpec::TST_typeofExpr: return "typeof"; in getSpecifierName()
552 case DeclSpec::TST_auto: return "auto"; in getSpecifierName()
553 case DeclSpec::TST_auto_type: return "__auto_type"; in getSpecifierName()
554 case DeclSpec::TST_decltype: return "(decltype)"; in getSpecifierName()
555 case DeclSpec::TST_decltype_auto: return "decltype(auto)"; in getSpecifierName()
556 case DeclSpec::TST_underlyingType: return "__underlying_type"; in getSpecifierName()
557 case DeclSpec::TST_unknown_anytype: return "__unknown_anytype"; in getSpecifierName()
558 case DeclSpec::TST_atomic: return "_Atomic"; in getSpecifierName()
560 case DeclSpec::TST_##ImgType##_t: \ in getSpecifierName()
563 case DeclSpec::TST_error: return "(error)"; in getSpecifierName()
568 const char *DeclSpec::getSpecifierName(TQ T) { in getSpecifierName()
570 case DeclSpec::TQ_unspecified: return "unspecified"; in getSpecifierName()
571 case DeclSpec::TQ_const: return "const"; in getSpecifierName()
572 case DeclSpec::TQ_restrict: return "restrict"; in getSpecifierName()
573 case DeclSpec::TQ_volatile: return "volatile"; in getSpecifierName()
574 case DeclSpec::TQ_atomic: return "_Atomic"; in getSpecifierName()
575 case DeclSpec::TQ_unaligned: return "__unaligned"; in getSpecifierName()
580 bool DeclSpec::SetStorageClassSpec(Sema &S, SCS SC, SourceLocation Loc, in SetStorageClassSpec()
643 bool DeclSpec::SetStorageClassSpecThread(TSCS TSC, SourceLocation Loc, in SetStorageClassSpecThread()
657 bool DeclSpec::SetTypeSpecWidth(TSW W, SourceLocation Loc, in SetTypeSpecWidth()
674 bool DeclSpec::SetTypeSpecComplex(TSC C, SourceLocation Loc, in SetTypeSpecComplex()
684 bool DeclSpec::SetTypeSpecSign(TSS S, SourceLocation Loc, in SetTypeSpecSign()
694 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc, in SetTypeSpecType()
702 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation TagKwLoc, in SetTypeSpecType()
711 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeSpecType()
723 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc, in SetTypeSpecType()
731 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeSpecType()
743 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc, in SetTypeSpecType()
751 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation TagKwLoc, in SetTypeSpecType()
761 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeSpecType()
773 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc, in SetTypeSpecType()
780 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeSpecType()
795 bool DeclSpec::SetTypeSpecSat(SourceLocation Loc, const char *&PrevSpec, in SetTypeSpecSat()
808 bool DeclSpec::SetTypeAltiVecVector(bool isAltiVecVector, SourceLocation Loc, in SetTypeAltiVecVector()
812 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeAltiVecVector()
821 bool DeclSpec::SetTypePipe(bool isPipe, SourceLocation Loc, in SetTypePipe()
826 PrevSpec = DeclSpec::getSpecifierName((TST)TypeSpecType, Policy); in SetTypePipe()
837 bool DeclSpec::SetTypeAltiVecPixel(bool isAltiVecPixel, SourceLocation Loc, in SetTypeAltiVecPixel()
842 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeAltiVecPixel()
852 bool DeclSpec::SetTypeAltiVecBool(bool isAltiVecBool, SourceLocation Loc, in SetTypeAltiVecBool()
857 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy); in SetTypeAltiVecBool()
867 bool DeclSpec::SetTypeSpecError() { in SetTypeSpecError()
875 bool DeclSpec::SetTypeQual(TQ T, SourceLocation Loc, const char *&PrevSpec, in SetTypeQual()
891 bool DeclSpec::SetTypeQual(TQ T, SourceLocation Loc) { in SetTypeQual()
906 bool DeclSpec::setFunctionSpecInline(SourceLocation Loc, const char *&PrevSpec, in setFunctionSpecInline()
920 bool DeclSpec::setFunctionSpecForceInline(SourceLocation Loc, const char *&PrevSpec, in setFunctionSpecForceInline()
932 bool DeclSpec::setFunctionSpecVirtual(SourceLocation Loc, in setFunctionSpecVirtual()
947 bool DeclSpec::setFunctionSpecExplicit(SourceLocation Loc, in setFunctionSpecExplicit()
962 bool DeclSpec::setFunctionSpecNoreturn(SourceLocation Loc, in setFunctionSpecNoreturn()
977 bool DeclSpec::SetFriendSpec(SourceLocation Loc, const char *&PrevSpec, in SetFriendSpec()
995 bool DeclSpec::setModulePrivateSpec(SourceLocation Loc, const char *&PrevSpec, in setModulePrivateSpec()
1007 bool DeclSpec::SetConstexprSpec(SourceLocation Loc, const char *&PrevSpec, in SetConstexprSpec()
1021 void DeclSpec::SaveWrittenBuiltinSpecs() { in SaveWrittenBuiltinSpecs()
1033 void DeclSpec::Finish(Sema &S, const PrintingPolicy &Policy) { in Finish()
1222 << DeclSpec::getSpecifierName(getThreadStorageClassSpec()) in Finish()
1227 << DeclSpec::getSpecifierName(getStorageClassSpec()) in Finish()
1271 if (DeclSpec::SCS SC = getStorageClassSpec()) { in Finish()
1277 if (DeclSpec::TSCS TSC = getThreadStorageClassSpec()) { in Finish()
1326 bool DeclSpec::isMissingDeclaratorOk() { in isMissingDeclaratorOk()
1329 StorageClassSpec != DeclSpec::SCS_typedef; in isMissingDeclaratorOk()