SageInterface::insertHeader
Insert #include "filename" or #include <filename> (system header) into the global scope containing the current scope, right after other #include XXX.
Synopsis
Declared in <SageIII/sageInterface/sageInterface.h>
[[visibility]]
PreprocessingInfo*
insertHeader(
std::string const& filename,
PreprocessingInfo::RelativePositionType position = PreprocessingInfo::after,
bool isSystemHeader = false,
SgScopeStatement* scope = NULL);
Return Value
For preprocessing information including source comments, include , if, define, etc
Parameters
Name |
Description |
position |
MK: Enum type to store if the directive goes before or after the corresponding line of source code |
scope |
This class represents the concept of a scope in C++ (e.g. global scope, fuction scope, etc.). |
Created with MrDocs