zenilib
0.5.3.0
|
#include <DetectCallDepth.h>
Inherits TIntermTraverser.
Public Types | |
enum | ErrorCode { kErrorMissingMain, kErrorRecursion, kErrorMaxDepthExceeded, kErrorNone } |
Public Member Functions | |
DetectCallDepth (TInfoSink &infoSync, bool limitCallStackDepth, int maxCallStackDepth) | |
~DetectCallDepth () | |
bool | checkExceedsMaxDepth (int depth) |
ErrorCode | detectCallDepth () |
virtual bool | visitAggregate (Visit, TIntermAggregate *) |
![]() | |
TIntermTraverser (bool preVisit=true, bool inVisit=false, bool postVisit=false, bool rightToLeft=false) | |
virtual | ~TIntermTraverser () |
void | decrementDepth () |
int | getMaxDepth () const |
void | incrementDepth () |
POOL_ALLOCATOR_NEW_DELETE () | |
virtual bool | visitBinary (Visit visit, TIntermBinary *) |
virtual bool | visitBranch (Visit visit, TIntermBranch *) |
virtual void | visitConstantUnion (TIntermConstantUnion *) |
virtual bool | visitLoop (Visit visit, TIntermLoop *) |
virtual bool | visitSelection (Visit visit, TIntermSelection *) |
virtual void | visitSymbol (TIntermSymbol *) |
virtual bool | visitUnary (Visit visit, TIntermUnary *) |
Additional Inherited Members | |
![]() | |
static TString | hash (const TString &name, ShHashFunction64 hashFunction) |
![]() | |
const bool | inVisit |
const bool | postVisit |
const bool | preVisit |
const bool | rightToLeft |
![]() | |
int | depth |
int | maxDepth |
Definition at line 19 of file DetectCallDepth.h.
Enumerator | |
---|---|
kErrorMissingMain | |
kErrorRecursion | |
kErrorMaxDepthExceeded | |
kErrorNone |
Definition at line 21 of file DetectCallDepth.h.
DetectCallDepth::DetectCallDepth | ( | TInfoSink & | infoSync, |
bool | limitCallStackDepth, | ||
int | maxCallStackDepth | ||
) |
Definition at line 72 of file DetectCallDepth.cpp.
DetectCallDepth::~DetectCallDepth | ( | ) |
Definition at line 80 of file DetectCallDepth.cpp.
References i.
bool DetectCallDepth::checkExceedsMaxDepth | ( | int | depth | ) |
Definition at line 127 of file DetectCallDepth.cpp.
DetectCallDepth::ErrorCode DetectCallDepth::detectCallDepth | ( | ) |
Definition at line 155 of file DetectCallDepth.cpp.
References error, i, kErrorMissingMain, kErrorNone, main(), and NULL.
Referenced by TCompiler::detectCallDepth().
|
virtual |
Reimplemented from TIntermTraverser.
Definition at line 86 of file DetectCallDepth.cpp.
References EOpFunction, EOpFunctionCall, EOpPrototype, TIntermAggregate::getName(), TIntermOperator::getOp(), NULL, PostVisit, and PreVisit.