ROSE
0.11.131.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) | |
void | addCxxExtension (std::string) const |
Utility method to add possible C++ extensions (hxx/hpp are not recognized by ROSE as source-file) | |
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. | |
SgSourceFile * | getSourceFile (size_t file_id) const |
Retrieve the source-file node from a 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 | addExternalHeader (size_t file_id, std::string header_name, bool is_system_header=true) const |
Insert external header for a given file. | |
void | addPragmaDecl (size_t file_id, std::string str) const |
Add a pragma at the begining of the file. | |
template<typename ContainerFileID0 , typename ContainerFileID1 > | |
void | exportNameQualification (ContainerFileID0 const &unparsed_ids, ContainerFileID1 const &header_ids) const |
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 | |