Ghidra 11.3.2
Ghidra internal decompiler documentation.
|
A filter that selects a range of function parameters that are considered optional. More...
#include <modelrules.hh>
Public Member Functions | |
VarargsFilter (int4 first, int4 last) | |
virtual QualifierFilter * | clone (void) const |
Make a copy of this qualifier. | |
virtual bool | filter (const PrototypePieces &proto, int4 pos) const |
Test whether the given function prototype meets this filter's criteria. | |
virtual void | decode (Decoder &decoder) |
Configure details of the criteria being filtered from the given stream. | |
![]() | |
virtual | ~QualifierFilter (void) |
Destructor. | |
Private Attributes | |
int4 | firstPos |
Start of range to match (offset relative to first variable arg) | |
int4 | lastPos |
End of range to match. | |
Additional Inherited Members | |
![]() | |
static QualifierFilter * | decodeFilter (Decoder &decoder) |
Try to instantiate a qualifier filter. | |
A filter that selects a range of function parameters that are considered optional.
If the underlying function prototype is considered to take variable arguments, the first n parameters (as determined by PrototypePieces.firstVarArgSlot) are considered non-optional. If additional data-types are provided beyond the initial n, these are considered optional. By default this filter matches on any parameter in a prototype with variable arguments. Optionally, it can filter on a range of parameters that are specified relative to the first variable argument.
|
inlinevirtual |
|
virtual |
Configure details of the criteria being filtered from the given stream.
decoder | is the given stream decoder |
Reimplemented from ghidra::QualifierFilter.
References ghidra::Decoder::closeElement(), firstPos, ghidra::Decoder::getNextAttributeId(), lastPos, ghidra::Decoder::openElement(), and ghidra::Decoder::readSignedInteger().
|
virtual |
Test whether the given function prototype meets this filter's criteria.
proto | is the high-level description of the function prototype to test |
pos | is the position of a specific output (pos=-1) or input (pos >=0) in context |
Implements ghidra::QualifierFilter.
References firstPos, ghidra::PrototypePieces::firstVarArgSlot, and lastPos.