retdec
ast_ctypes_parser.h
Go to the documentation of this file.
1 
7 #ifndef RETDEC_AST_CTYPES_PARSER_H
8 #define RETDEC_AST_CTYPES_PARSER_H
9 
11 
12 namespace retdec {
13 namespace demangler {
14 
15 /*
16  * Base class for all AST to ctypes parsers.
17  */
19 public:
20  AstToCtypesParser () = default;
21 
22 protected:
23  unsigned getBitWidth(const std::string &typeName) const;
24 
25  ctypes::IntegralType::Signess toSigness(bool isUnsigned) const;
26 
27  ctypes::IntegralType::Signess toSigness(const std::string &typeName) const;
28 
30 };
31 
32 } // demangler
33 } // retdec
34 
35 #endif //RETDEC_AST_CTYPES_PARSER_H
VarArgness
Definition: function_type.h:33
Signess
Definition: integral_type.h:26
A base class for parsing to C-types.
Definition: ctypes_parser.h:25
Definition: ast_ctypes_parser.h:18
ctypes::FunctionType::VarArgness toVarArgness(bool isVarArg) const
Definition: ast_ctypes_parser.cpp:81
unsigned getBitWidth(const std::string &typeName) const
Definition: ast_ctypes_parser.cpp:17
ctypes::IntegralType::Signess toSigness(bool isUnsigned) const
Definition: ast_ctypes_parser.cpp:52
Parser for C-types.
Definition: archive_wrapper.h:19