Home | History | Annotate | Download | only in Sema

Lines Matching refs:DeclSpec

14 #include "clang/Sema/DeclSpec.h"
174 assert(!(TypeQuals & DeclSpec::TQ_atomic) &&
323 return getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static ||
328 bool DeclSpec::hasTagDefinition() const {
337 unsigned DeclSpec::getParsedSpecifiers() const {
359 PrevSpec = DeclSpec::getSpecifierName(TPrev);
368 const char *DeclSpec::getSpecifierName(DeclSpec::SCS S) {
370 case DeclSpec::SCS_unspecified: return "unspecified";
371 case DeclSpec::SCS_typedef: return "typedef";
372 case DeclSpec::SCS_extern: return "extern";
373 case DeclSpec::SCS_static: return "static";
374 case DeclSpec::SCS_auto: return "auto";
375 case DeclSpec::SCS_register: return "register";
376 case DeclSpec::SCS_private_extern: return "__private_extern__";
377 case DeclSpec::SCS_mutable: return "mutable";
382 const char *DeclSpec::getSpecifierName(DeclSpec::TSCS S) {
384 case DeclSpec::TSCS_unspecified: return "unspecified";
385 case DeclSpec::TSCS___thread: return "__thread";
386 case DeclSpec::TSCS_thread_local: return "thread_local";
387 case DeclSpec::TSCS__Thread_local: return "_Thread_local";
392 const char *DeclSpec::getSpecifierName(TSW W) {
402 const char *DeclSpec::getSpecifierName(TSC C) {
412 const char *DeclSpec::getSpecifierName(TSS S) {
421 const char *DeclSpec::getSpecifierName(DeclSpec::TST T,
424 case DeclSpec::TST_unspecified: return "unspecified";
425 case DeclSpec::TST_void: return "void";
426 case DeclSpec::TST_char: return "char";
427 case DeclSpec::TST_wchar: return Policy.MSWChar ? "__wchar_t" : "wchar_t";
428 case DeclSpec::TST_char16: return "char16_t";
429 case DeclSpec::TST_char32: return "char32_t";
430 case DeclSpec::TST_int: return "int";
431 case DeclSpec::TST_int128: return "__int128";
432 case DeclSpec::TST_half: return "half";
433 case DeclSpec::TST_float: return "float";
434 case DeclSpec::TST_double: return "double";
435 case DeclSpec::TST_bool: return Policy.Bool ? "bool" : "_Bool";
436 case DeclSpec::TST_decimal32: return "_Decimal32";
437 case DeclSpec::TST_decimal64: return "_Decimal64";
438 case DeclSpec::TST_decimal128: return "_Decimal128";
439 case DeclSpec::TST_enum: return "enum";
440 case DeclSpec::TST_class: return "class";
441 case DeclSpec::TST_union: return "union";
442 case DeclSpec::TST_struct: return "struct";
443 case DeclSpec::TST_interface: return "__interface";
444 case DeclSpec::TST_typename: return "type-name";
445 case DeclSpec::TST_typeofType:
446 case DeclSpec::TST_typeofExpr: return "typeof";
447 case DeclSpec::TST_auto: return "auto";
448 case DeclSpec::TST_decltype: return "(decltype)";
449 case DeclSpec::TST_decltype_auto: return "decltype(auto)";
450 case DeclSpec
451 case DeclSpec::TST_unknown_anytype: return "__unknown_anytype";
452 case DeclSpec::TST_atomic: return "_Atomic";
453 case DeclSpec::TST_error: return "(error)";
458 const char *DeclSpec::getSpecifierName(TQ T) {
460 case DeclSpec::TQ_unspecified: return "unspecified";
461 case DeclSpec::TQ_const: return "const";
462 case DeclSpec::TQ_restrict: return "restrict";
463 case DeclSpec::TQ_volatile: return "volatile";
464 case DeclSpec::TQ_atomic: return "_Atomic";
469 bool DeclSpec::SetStorageClassSpec(Sema &S, SCS SC, SourceLocation Loc,
530 bool DeclSpec::SetStorageClassSpecThread(TSCS TSC, SourceLocation Loc,
541 /// These methods set the specified attribute of the DeclSpec, but return true
544 bool DeclSpec::SetTypeSpecWidth(TSW W, SourceLocation Loc,
558 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy);
565 bool DeclSpec::SetTypeSpecComplex(TSC C, SourceLocation Loc,
575 bool DeclSpec::SetTypeSpecSign(TSS S, SourceLocation Loc,
585 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc,
593 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation TagKwLoc,
602 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy);
614 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc,
622 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy);
634 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc,
642 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation TagKwLoc,
652 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy);
664 bool DeclSpec::SetTypeSpecType(TST T, SourceLocation Loc,
671 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy);
684 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy);
691 bool DeclSpec::SetTypeAltiVecVector(bool isAltiVecVector, SourceLocation Loc,
695 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy);
704 bool DeclSpec::SetTypeAltiVecPixel(bool isAltiVecPixel, SourceLocation Loc,
709 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy);
719 bool DeclSpec::SetTypeAltiVecBool(bool isAltiVecBool, SourceLocation Loc,
724 PrevSpec = DeclSpec::getSpecifierName((TST) TypeSpecType, Policy);
734 bool DeclSpec::SetTypeSpecError() {
742 bool DeclSpec::SetTypeQual(TQ T, SourceLocation Loc, const char *&PrevSpec,
767 bool DeclSpec::setFunctionSpecInline(SourceLocation Loc, const char *&PrevSpec,
781 bool DeclSpec::setFunctionSpecForceInline(SourceLocation Loc, const char *&PrevSpec,
793 bool DeclSpec::setFunctionSpecVirtual(SourceLocation Loc,
808 bool DeclSpec::setFunctionSpecExplicit(SourceLocation Loc,
823 bool DeclSpec::setFunctionSpecNoreturn(SourceLocation Loc,
838 bool DeclSpec::SetFriendSpec(SourceLocation Loc, const char *&PrevSpec,
856 bool DeclSpec::setModulePrivateSpec(SourceLocation Loc, const char *&PrevSpec,
868 bool DeclSpec::SetConstexprSpec(SourceLocation Loc, const char *&PrevSpec,
882 void DeclSpec::setProtocolQualifiers(Decl * const *Protos,
896 void DeclSpec::SaveWrittenBuiltinSpecs() {
912 /// Finish - This does final analysis of the declspec, rejecting things like
915 /// DeclSpec is guaranteed self-consistent, even if an error occurred.
916 void DeclSpec::Finish(DiagnosticsEngine &D, Preprocessor &PP, const PrintingPolicy &Policy) {
955 // Validate and finalize AltiVec vector declspec.
1068 << DeclSpec::getSpecifierName(getThreadStorageClassSpec())
1073 << DeclSpec::getSpecifierName(getStorageClassSpec())
1115 if (DeclSpec::SCS SC = getStorageClassSpec()) {
1121 if (DeclSpec::TSCS TSC = getThreadStorageClassSpec()) {
1170 bool DeclSpec::isMissingDeclaratorOk() {
1173 StorageClassSpec != DeclSpec::SCS_typedef;