Class IfDirectiveExtractor#

Inheritance Relationships#

Base Type#

Derived Type#

Class Documentation#

class IfDirectiveExtractor : public ASTtools::PrePostTraversal#

Traversal to extract ‘#if’ directives.

Subclassed by CPreproc::IfDirectiveContextFinder

Public Functions

IfDirectiveExtractor(Ifs_t &ifs)#
virtual void visitTopDown(SgNode *n)#

Called as we descend the tree.

virtual void visitBottomUp(SgNode *n)#

Called as we ascend the tree.

Protected Functions

const If::Case *getCurrentContext(void) const#

Provides child classes with access to current ‘#if’ directive.

If::Case *getCurrentContext(void)#