IDA C++ SDK 9.2
Loading...
Searching...
No Matches
funcarg_t Struct Reference

Information about a single function argument. More...

#include <typeinf.hpp>

Public Member Functions

 funcarg_t ()=default
 funcarg_t (const char *_name, const tinfo_t &_type, const argloc_t &_argloc=argloc_t())
 Create a function argument, with the specified name and arbitrary type.
 funcarg_t (const char *_name, const type_t _type, const argloc_t &_argloc=argloc_t())
 Create a function argument, with the specified name and simple type.
 funcarg_t (const char *_name, const char *_type, const argloc_t &_argloc=argloc_t())
 Create a function argument, with the specified name and type.
bool operator== (const funcarg_t &r) const
bool operator!= (const funcarg_t &r) const

Public Attributes

argloc_t argloc
 argument location
qstring name
 argument name (may be empty)
qstring cmt
 argument comment (may be empty)
tinfo_t type
 argument type
uint32 flags = 0
 Function argument property bits

Detailed Description

Information about a single function argument.

Constructor & Destructor Documentation

◆ funcarg_t() [1/4]

funcarg_t::funcarg_t ( )
default

◆ funcarg_t() [2/4]

funcarg_t::funcarg_t ( const char * _name,
const tinfo_t & _type,
const argloc_t & _argloc = argloc_t() )
inline

Create a function argument, with the specified name and arbitrary type.

Parameters
_nameArgument name. May be empty
_typeArgument type. Must not be empty.
_arglocArgument location. Can be empty.

◆ funcarg_t() [3/4]

funcarg_t::funcarg_t ( const char * _name,
const type_t _type,
const argloc_t & _argloc = argloc_t() )
inline

Create a function argument, with the specified name and simple type.

Parameters
_nameArgument name. May be empty
_typeArgument type. Can be only a simple type (integral/floating/bool).
_arglocArgument location. Can be empty.

◆ funcarg_t() [4/4]

funcarg_t::funcarg_t ( const char * _name,
const char * _type,
const argloc_t & _argloc = argloc_t() )
inline

Create a function argument, with the specified name and type.

The 'type' object will be created by parsing the '_type' type declaration.

Parameters
_nameArgument name. May be empty
_typeMember type. Must not a valid C type declaration.
_arglocArgument location. Can be empty.

Member Function Documentation

◆ operator==()

bool funcarg_t::operator== ( const funcarg_t & r) const
inline

◆ operator!=()

bool funcarg_t::operator!= ( const funcarg_t & r) const
inline

Member Data Documentation

◆ argloc

argloc_t funcarg_t::argloc

argument location

◆ name

qstring funcarg_t::name

argument name (may be empty)

◆ cmt

qstring funcarg_t::cmt

argument comment (may be empty)

◆ type

tinfo_t funcarg_t::type

argument type

◆ flags


The documentation for this struct was generated from the following file: