Skip to content

CPreproc::findIfDirectiveContext

Locate the '#if' directive context at a node.

Synopsis

Declared in <src/midend/programTransformation/astOutlining/If.hh>

void
findIfDirectiveContext(
    SgLocatedNode const* target,
    Ifs_t& ifs,
    If::Case*& top,
    If::Case*& bottom);

Parameters

Name Description
target This class represents the notion of an expression or statement which
ifs Stores lists of directives.
top Stores one case of a preprocessor '#if' directive.
bottom Stores one case of a preprocessor '#if' directive.

Created with MrDocs