Function SgNodeHelper::switchRelevantDefaultStmtNode

Function SgNodeHelper::switchRelevantDefaultStmtNode#

Function Documentation#

SgDefaultOptionStmt *SgNodeHelper::switchRelevantDefaultStmtNode(SgNode *node)#

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.