PreprocessingInfo
For preprocessing information including source comments, include , if, define, etc
Synopsis
Declared in <SageIII/rose_attributes_list.h>
class PreprocessingInfo;
Enums
Name |
Description |
MK: Enum type to store if the directive goes before or after the corresponding line of source code |
Member Functions
Name |
Description |
|
Constructors |
|
Destructor |
Static Member Functions
Private Data Members
Non-Member Functions
Name |
Description |
Returns true if the info is an '#if', '#ifdef', or '#ifndef'. |
|
Returns true if the info is an '#elif' or '#else'. |
|
Returns true if info is positioned after its statement. |
|
Returns true if info is positioned before its statement. |
|
Returns true if info is positioned inside its statement. |
|
Build and attach a comment, comment style is inferred from the language type of the target node if not provided. It is indeed a wrapper of SageInterface::attachComment(). |
|
Build and attach #define XX directives, pass "#define xxx xxx" as content. |
|
Build a dangling #include "x.h" header, insertHeader() is needed to actually insert it |
|
Attach an arbitrary string to a located node. A workaround to insert irregular statements or vendorāspecific attributes. |
|
Build and attach comment, comment style is inferred from the language type of the target node if not provided |
|
Build and attach comment onto the global scope of a source file |
|
Find the preprocessingInfo node representing #include <header.h> or #include "header.h" within a source file. Return NULL if not found. |
|
Insert #include "filename" or #include <filename> (system header) into the global scope containing the current scope, right after other #include XXX. |
|
Insert #include "filename" or #include <filename> (system header) onto the global scope of a source file |
|
Insert #include "filename" or #include <filename> (system header) onto the global scope of a source file, add to be the last #include .. by default among existing headers, Or as the first header. Recommended for use. |
Created with MrDocs