ROSE
0.11.83.0
|
facilitates the manipulation of source-files (esp.
library headers and generated files).
#include <Rose/CodeGen/Driver.h>
Public Member Functions | |
Driver (SgProject *project_) | |
Driver (std::vector< std::string > &args) | |
size_t | create (const boost::filesystem::path &path) |
Create a file () | |
size_t | add (const boost::filesystem::path &path) |
SgGlobal * | getGlobalScope (size_t file_id) const |
Retrieve the global scope of a file from its file-id. | |
void | setUnparsedFile (size_t file_id) const |
Set a file to be unparsed with the project (by default file added to the driver are NOT unparsed) | |
void | setCompiledFile (size_t file_id) const |
Set a file to be compiled with the project (by default file added to the driver are NOT compiled) | |
void | addIncludeDirectives (size_t target_file_id, size_t header_file_id) |
Add include statement for header inside of target. | |
void | addExternalHeader (size_t file_id, std::string header_name, bool is_system_header=true) |
Import external header for a given file. | |
void | addPragmaDecl (size_t file_id, std::string str) |
Add a pragma at the begining of the file. | |
size_t | getFileID (const boost::filesystem::path &path) const |
Retrieve file-id of associated with a file. | |
size_t | getFileID (SgSourceFile *source_file) const |
Retrieve file-id of associated with a file. | |
size_t | getFileID (SgScopeStatement *scope) const |
Retrieve file-id of associated with a file. | |
Public Attributes | |
SgProject * | project |
the Rose project | |