CPreproc::If::Case
Stores one case of a preprocessor '#if' directive.
Synopsis
Declared in <src/midend/programTransformation/astOutlining/If.hh>
class Case;
Member Functions
Name |
Description |
|
Constructors |
Makes the given '#if' a child of this case. |
|
Get the condition represented by this case. |
|
Returns the directive as a string (i.e., '#if'). |
|
Returns the complete, raw directive, as a string. |
|
Returns 'true' if this case is an '#elif'. |
|
Returns 'true' if this case is an '#else'. |
|
Returns 'true' if this case is an '#endif'. |
|
Returns 'true' if this case is a '#if'. |
|
Returns 'true' if this case is a '#ifdef'. |
|
Returns 'true' if this case is a '#ifndef'. |
|
Associates this case with a particular directive. |
Protected Member Functions
Name |
Description |
|
The default constructor, hidden to prevent users from instantiating a case without specifying the actual directive (PreprocessingInfo object and AST node). |
Private Data Members
Description
A If::Case object stores a particular case, identified through a (PreprocessingInfo, SgLocatedNode) pair. It also stores pointers to child If objects, representing nested '#if' directives.
Created with MrDocs