SageBuilder::buildGeneratedSourceFile
Build an output‐only SgSourceFile node and attach it to SgProject The file is constructed with an empty global scope without creating an input file or invoking a frontend. The output filename is canonicalized to one absolute translation‐unit identity before construction and determines the source language. The same identity owns the file command line, source positions, and unparse output. If project is null, a new SgProject is created and can be retrieved with SgFile::get_project().
Synopsis
Declared in <SageIII/sageInterface/sageBuilder.h>
[[visibility]]
SgSourceFile*
buildGeneratedSourceFile(
std::string const& outputFileName,
SgProject* project = NULL);
Parameters
Name |
Description |
project |
This class represents a source project, with a list of SgFile objects and global |
Created with MrDocs