retdec
char_type.h
Go to the documentation of this file.
1 
7 #ifndef RETDEC_CHAR_TYPE_H
8 #define RETDEC_CHAR_TYPE_H
9 
11 
12 namespace retdec {
13 namespace demangler {
14 namespace borland {
15 
22 {
25  no_prefix
26 };
27 
32 {
33 public:
34  static std::shared_ptr<CharTypeNode> create(
35  Context &context,
37  const Qualifiers &quals);
38 
39  std::string typeName() const override;
40 
42 
43  void printLeft(std::ostream &s) const override;
44 
45 private:
48  const Qualifiers &quals);
49 
50 private:
52 };
53 
54 } // borland
55 } // demangler
56 } // retdec
57 
58 #endif //RETDEC_CHAR_TYPE_H
Representation of built-in types in borland AST.
Node for representation of built-in types. Used for types: void, bool, char16_t, char32_t and wchar_t...
Definition: built_in_type.h:22
Representation of char types.
Definition: char_type.h:32
ThreeStateSignedness _signedness
Definition: char_type.h:51
void printLeft(std::ostream &s) const override
Prints text representation of char type with qualifiers to output stream.
Definition: char_type.cpp:70
ThreeStateSignedness signedness()
Definition: char_type.cpp:62
static std::shared_ptr< CharTypeNode > create(Context &context, ThreeStateSignedness signedness, const Qualifiers &quals)
Function for creating char types. If type the same type was already created, then that instance is re...
Definition: char_type.cpp:32
CharTypeNode(ThreeStateSignedness signedness, const Qualifiers &quals)
Private constructor for Char types. Use create().
Definition: char_type.cpp:18
std::string typeName() const override
Definition: char_type.cpp:47
Storage for functions, types and names. Used for cacheing.
Definition: context.h:38
Definition: qualifiers.h:20
Qualifiers quals()
Definition: type_node.cpp:23
ThreeStateSignedness
Signedness used for chars. Chars can be signed char, unsigned char and char, which are by standard di...
Definition: char_type.h:22
Definition: archive_wrapper.h:19