SgNodeHelper::switchRelevantDefaultStmtNode
returns the default stmt if it exists. Otherwise return 0 and can be used to test whether a default stmt exists in a given switch stmt. This function also works for Duff's device code. code where 'default' labels can be inside nested loop/if constructs.
Synopsis
Declared in <src/midend/abstractLayer/SgNodeHelper.h>
SgDefaultOptionStmt*
switchRelevantDefaultStmtNode(SgNode* node);
Return Value
This class represents the concept of a C or C++ default case within a switch
Parameters
Name |
Description |
node |
This class represents the base class for all IR nodes within Sage III. |
Created with MrDocs