Function SgNodeHelper::switchRelevantCaseStmtNodes#
Defined in File SgNodeHelper.h
Function Documentation#
-
std::set<SgCaseOptionStmt*> SgNodeHelper::switchRelevantCaseStmtNodes(SgNode *node)#
collects all case labels from the switch it started in (excludes nested switch stmts). This function also works for Duff’s device code where ‘case’ labels can be inside nested loop/if constructs.