Skip to content

CPreproc

Types

Name

Description

If

Stores a preprocessor '#if' directive and nested directives.

IfDirectiveContextFinder

Find the '#if' case surrounding a given node.

IfDirectiveExtractor

Traversal to extract '#if' directives.

Ifs_t

Stores lists of directives.

Functions

Name

Description

dump
void dump(Ifs_t const ifs);

dump overloads

extractIfDirectives
void extractIfDirectives(SgNode* root, Ifs_t& ifs);

Extracts the '#if' directive structure from a project.

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

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

Created with MrDocs