retdec
|
Representation of function types. Used for information about functions without name. More...
#include <function_type.h>
Public Member Functions | |
CallConv | callConv () |
std::shared_ptr< NodeArray > | params () |
std::shared_ptr< TypeNode > | retType () |
bool | isVarArg () |
void | printLeft (std::ostream &s) const override |
void | printRight (std::ostream &s) const override |
![]() | |
Qualifiers | quals () |
![]() | |
Node (Kind kind, bool has_right_side=false) | |
Abstract constructor for base node. More... | |
virtual | ~Node ()=default |
void | print (std::ostream &s) const |
Prints left side of node. More... | |
std::string | str () const |
Kind | kind () const |
bool | hasRight () |
Static Public Member Functions | |
static std::shared_ptr< FunctionTypeNode > | create (CallConv callConv, std::shared_ptr< NodeArray > params, std::shared_ptr< TypeNode > retType, Qualifiers &quals, bool isVarArg) |
Function for creating function types. More... | |
Private Member Functions | |
FunctionTypeNode (CallConv callConv, std::shared_ptr< NodeArray > params, std::shared_ptr< TypeNode > retType, Qualifiers &quals, bool isVarArg) | |
Private constructor for function types. Use create(). More... | |
Private Attributes | |
CallConv | _callConv |
std::shared_ptr< NodeArray > | _params |
std::shared_ptr< TypeNode > | _retType |
bool | _isVarArg |
Additional Inherited Members | |
![]() | |
enum class | Kind { KFunction , KFunctionType , KName , KNestedName , KNodeArray , KNodeString , KTypeNode , KBuiltInType , KPointerType , KIntegralType , KCharType , KFloatType , KParentheses , KReferenceType , KRReferenceType , KNamedType , KTemplateNode , KArrayNode , KConversionOperator } |
![]() | |
TypeNode (const Qualifiers &quals) | |
![]() | |
Qualifiers | _quals |
![]() | |
Kind | _kind |
bool | _has_right |
Representation of function types. Used for information about functions without name.
|
private |
Private constructor for function types. Use create().
CallConv retdec::demangler::borland::FunctionTypeNode::callConv | ( | ) |
|
static |
bool retdec::demangler::borland::FunctionTypeNode::isVarArg | ( | ) |
std::shared_ptr< NodeArray > retdec::demangler::borland::FunctionTypeNode::params | ( | ) |
|
overridevirtual |
Prints left side of function type to output stream.
Implements retdec::demangler::borland::Node.
|
overridevirtual |
Prints right side of function type to output stream.
Reimplemented from retdec::demangler::borland::Node.
std::shared_ptr< TypeNode > retdec::demangler::borland::FunctionTypeNode::retType | ( | ) |
|
private |
|
private |
|
private |
|
private |