SageBuilder::buildFile¶
AST high level builders for others
Synopsis¶
Declared in <SageIII/sageInterface/sageBuilder.h>
[[visibility("default")]]
SgFile*
buildFile(
std::string const& inputFileName,
std::string const& outputFileName,
SgProject* project = NULL); Description¶
Build a SgFile node and attach it to SgProject Parse an existing readable input file. An unreadable input or frontend failure is a hard error. Use buildGeneratedSourceFile for output-only AST construction. outputFileName selects the unparse destination. The file is registered in project; buildFile creates a project when none is supplied. Retrieve its owner with SgFile::get_project().
Return Value¶
Base class for files in a project. Stores file metadata and command-line options. SgSourceFile owns the global scope of a source file.
Parameters¶
| Name | Description |
|---|---|
| project | This class represents a source project, with a list of SgFile objects and global |
Created with MrDocs