Skip to content

SageInterface::findEnclosingSwitch

Find the closest switch outside a given statement (normally used for case and default statements)

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

[[visibility]]
SgSwitchStatement*
findEnclosingSwitch(SgStatement* s);

Return Value

This class represents the concept of a switch.

Parameters

Name

Description

s

This class represents the notion of a statement.

Created with MrDocs