SageBuilder::buildSourceFile
buildSourceFile overloads
Synopses
Declared in <SageIII/sageInterface/sageBuilder.h>
Build a SgFile node and attach it to SgProject The file will be build with an empty global scope to support declarations being added.
[[visibility]]
SgSourceFile*
buildSourceFile(
std::string const& outputFileName,
SgProject* project = NULL,
bool clear_globalScopeAcrossFiles = false);
Build a SgSourceFile node and attach it to SgProject The input file will be loaded if exists, or an empty one will be generated from scratch transparently. Output file name is used to specify the output file name of unparsing. The final SgFile will be inserted to project automatically. If not provided, a new SgProject will be generated internally. Using SgFile‐>get_project() to retrieve it in this case.
[[visibility]]
SgSourceFile*
buildSourceFile(
std::string const& inputFileName,
std::string const& outputFileName,
SgProject* project,
bool clear_globalScopeAcrossFiles = false);
Created with MrDocs