clang: clang::KeywordHelpers Struct Reference (original) (raw)
Provides a few static helpers for converting and printing elaborated type keyword and tag type kind enumerations. More...
#include "[clang/AST/TypeBase.h](TypeBase%5F8h%5Fsource.html)"
| Static Public Member Functions | |
|---|---|
| static ElaboratedTypeKeyword | getKeywordForTypeSpec (unsigned TypeSpec) |
| Converts a type specifier (DeclSpec::TST) into an elaborated type keyword. | |
| static TagTypeKind | getTagTypeKindForTypeSpec (unsigned TypeSpec) |
| Converts a type specifier (DeclSpec::TST) into a tag type kind. | |
| static ElaboratedTypeKeyword | getKeywordForTagTypeKind (TagTypeKind Tag) |
| Converts a TagTypeKind into an elaborated type keyword. | |
| static TagTypeKind | getTagTypeKindForKeyword (ElaboratedTypeKeyword Keyword) |
| Converts an elaborated type keyword into a TagTypeKind. | |
| static bool | KeywordIsTagTypeKind (ElaboratedTypeKeyword Keyword) |
| static StringRef | getKeywordName (ElaboratedTypeKeyword Keyword) |
| static StringRef | getTagTypeKindName (TagTypeKind Kind) |
Provides a few static helpers for converting and printing elaborated type keyword and tag type kind enumerations.
Definition at line 5897 of file TypeBase.h.
◆ getKeywordForTagTypeKind()
◆ getKeywordForTypeSpec()
Converts a type specifier (DeclSpec::TST) into an elaborated type keyword.
Definition at line 3221 of file Type.cpp.
References clang::Class, clang::Enum, clang::Interface, clang::None, clang::Struct, clang::TST_class, clang::TST_enum, clang::TST_interface, clang::TST_struct, clang::TST_typename, clang::TST_union, clang::Typename, and clang::Union.
Referenced by ConvertDeclSpecToType().
◆ getKeywordName()
Definition at line 3309 of file Type.cpp.
References clang::Class, clang::Enum, clang::Interface, clang::Keyword, clang::None, clang::Struct, clang::Typename, and clang::Union.
Referenced by getTagTypeKindName(), clang::TextNodeDumper::VisitTagType(), clang::TextNodeDumper::VisitTemplateSpecializationType(), clang::TextNodeDumper::VisitTypedefType(), clang::TextNodeDumper::VisitUnresolvedUsingType(), and clang::TextNodeDumper::VisitUsingType().
◆ getTagTypeKindForKeyword()
◆ getTagTypeKindForTypeSpec()
Converts a type specifier (DeclSpec::TST) into a tag type kind.
It is an error to provide a type specifier which isn't a tag kind here.
Definition at line 3240 of file Type.cpp.
References clang::Class, clang::Enum, clang::Interface, clang::Struct, clang::TST_class, clang::TST_enum, clang::TST_interface, clang::TST_struct, clang::TST_union, and clang::Union.
Referenced by clang::Sema::ActOnClassTemplateSpecialization(), clang::Sema::ActOnDependentTag(), clang::Sema::ActOnExplicitInstantiation(), clang::Sema::ActOnTag(), clang::Sema::ActOnTagTemplateIdType(), clang::Sema::ActOnTemplatedFriendTag(), and clang::Sema::CheckClassTemplate().
◆ getTagTypeKindName()
| StringRef clang::KeywordHelpers::getTagTypeKindName ( TagTypeKind Kind) | inlinestatic |
|---|
◆ KeywordIsTagTypeKind()
The documentation for this struct was generated from the following files:
- include/clang/AST/TypeBase.h
- lib/AST/Type.cpp