SgFile¶
Base class for files in a project. Stores file metadata and command-line options. SgSourceFile owns the global scope of a source file.
Synopsis¶
Declared in <src/frontend/SageIII/Cxx_Grammar.h> (not stored in Git)
class [[visibility("default")]] SgFile
: public SgSupport Description¶
Data members
`ROSEAttributesListContainerPtr¶
SgFile::p_preprocessorDirectivesAndCommentsList` This is the container of comments and preprocessor control statements that was extracted from the file and which has been woven back into the AST (using heuristics). This information is extracted from the file using a lex based parser. Within AST post processing the comments and preprocessor control statements are woven back into the AST using simple heuristics. They are attached to the IR nodes as attributes (see AST attribute Mechanism). They are unparsed as part of the code generation phase.
SgFile::p_originalCommandLineArgumentList¶
Copy of original argc and argv command line passed to ROSE translator (converted to STL list of strings).
- Internal: This is a deep copy.
SgFile::p_file_info¶
This object permits the file name map mechanism to be used on SgFile objects. This Sg_File_Info object encapsulates the file id mechanism which maps file ids (integers) to filenames (strings). This permist us to save significant storage by holding string names only once in memory and associating integers with them saving memory and simplify matching file names. The memory saving is because there would otherwise be a LOT of redundant filename strings, 2 per IR node in many cases. the performance advantage is that integer comparisons are significantly than string comparisions and there are a lot of these (one per IR node) in the traversal mechanisms.
- Internal: The filename is not currently correct, I think.
Member functions
list<string> SgFile::get_originalCommandLineArgumentList() const¶
Returns a list of strings representing the original command-line.
`SgFile::set_originalCommandLineArgumentList( list<string>¶
originalCommandLineArgumentList )` Sets the list of strings representing the original command-line.
Base Classes¶
| Name | Description |
|---|---|
SgSupport | This class represents the base class of a numbr of IR nodes that don't otherwise fit |
Type Aliases¶
| Name |
|---|
base_node_type |
Enums¶
| Name | Description |
|---|---|
Unnamed enum | static variant value |
languageOption_enum | Enum type used to specify output language (option used for testing unparsers). |
outputFormatOption_enum | Enum type used to specify output of Fortran as fixed for free format. |
standard_enum |
Member Functions¶
| Name | Description |
|---|---|
SgFileSgFile(); [constructor] | Constructors |
~SgFilevirtual ~SgFile(); [destructor] [virtual] | Destructor |
acceptvirtual void accept(ROSE_VisitorPattern& visitor) override; [virtual] | support for the classic visitor pattern done in GoF |
addNewAttributevirtual void addNewAttribute( std::string s, AstAttribute* a) override; [virtual] | Add a new attribute represented by the named string. |
appendDestructorOwnedNodesvirtual void appendDestructorOwnedNodes(std::vector<SgNode*>& nodes) const override; [virtual] | |
attributeExistsvirtual bool attributeExists(std::string s) const override; [virtual] | Tests if attribute of name 's' is present. |
buildASTvirtual int buildAST( std::vector<std::string> argv, std::vector<std::string> inputCommandLine); [virtual] | |
buildCompilerCommandLineOptionsstd::vector<std::string> buildCompilerCommandLineOptions( std::vector<std::string>& argv, int fileNameIndex, std::string const& compilerName); | |
build_CLANG_CommandLinevoid build_CLANG_CommandLine( std::vector<std::string>& inputCommandLine, std::vector<std::string>& argv, int fileNameIndex); | |
callFrontEndvirtual int callFrontEnd(); [virtual] | |
class_namevirtual std::string class_name() const override; [virtual] | returns a string representing the class name |
compileOutputint compileOutput(int fileNameIndex); | Member function to compile the resulting output file from unparsing |
copyvirtual SgNode* copy(SgCopyHelp& help) const override; [virtual] | |
displayvoid display(std::string const& label) const; | |
display_standardstd::string display_standard(standard_enum e_std); | |
doSetupForConstructorvirtual void doSetupForConstructor( std::vector<std::string> const& argv, SgProject* project, SgFileList* owner); | |
generateOutputFileNamestd::string generateOutputFileName() const; | Generate an output filename from the source file name (xxx.C -> rose_xxx.C -> xxx.o -> xxx) |
getAttributevirtual AstAttribute* getAttribute(std::string s) const override; [virtual] | Returns attribute of name 's'. |
getFileNamestd::string getFileName() const; | associated filename |
getSourceDirectorystd::string getSourceDirectory(); | |
getWorkingDirectorystd::string getWorkingDirectory(); | |
get_C11_gnu_onlybool get_C11_gnu_only() const; | |
get_C11_onlybool get_C11_only() const; | |
get_C17_gnu_onlybool get_C17_gnu_only() const; | |
get_C17_onlybool get_C17_only() const; | |
get_C23_gnu_onlybool get_C23_gnu_only() const; | |
get_C23_onlybool get_C23_only() const; | |
get_C2y_gnu_onlybool get_C2y_gnu_only() const; | |
get_C2y_onlybool get_C2y_only() const; | |
get_C89_gnu_onlybool get_C89_gnu_only() const; | |
get_C89_onlybool get_C89_only() const; | |
get_C90_gnu_onlybool get_C90_gnu_only() const; | |
get_C90_onlybool get_C90_only() const; | |
get_C99_gnu_onlybool get_C99_gnu_only() const; | |
get_C99_onlybool get_C99_only() const; | |
get_C_onlybool get_C_only() const; | |
get_CoArrayFortran_onlybool get_CoArrayFortran_only() const; | |
get_Cuda_onlybool get_Cuda_only() const; | |
get_Cxx03_gnu_onlybool get_Cxx03_gnu_only() const; | |
get_Cxx03_onlybool get_Cxx03_only() const; | |
get_Cxx11_gnu_onlybool get_Cxx11_gnu_only() const; | |
get_Cxx11_onlybool get_Cxx11_only() const; | |
get_Cxx14_gnu_onlybool get_Cxx14_gnu_only() const; | |
get_Cxx14_onlybool get_Cxx14_only() const; | |
get_Cxx17_gnu_onlybool get_Cxx17_gnu_only() const; | |
get_Cxx17_onlybool get_Cxx17_only() const; | |
get_Cxx20_gnu_onlybool get_Cxx20_gnu_only() const; | |
get_Cxx20_onlybool get_Cxx20_only() const; | |
get_Cxx23_gnu_onlybool get_Cxx23_gnu_only() const; | |
get_Cxx23_onlybool get_Cxx23_only() const; | |
get_Cxx26_gnu_onlybool get_Cxx26_gnu_only() const; | |
get_Cxx26_onlybool get_Cxx26_only() const; | |
get_Cxx98_gnu_onlybool get_Cxx98_gnu_only() const; | |
get_Cxx98_onlybool get_Cxx98_only() const; | |
get_Cxx_onlybool get_Cxx_only() const; | |
get_F2003_onlybool get_F2003_only() const; | |
get_F2008_onlybool get_F2008_only() const; | |
get_F2018_onlybool get_F2018_only() const; | |
get_F77_onlybool get_F77_only() const; | |
get_F90_onlybool get_F90_only() const; | |
get_F95_onlybool get_F95_only() const; | |
get_Fortran_onlybool get_Fortran_only() const; | |
get_OpenCL_onlybool get_OpenCL_only() const; | |
get_attributeMechanismvirtual AstAttributeMechanism* get_attributeMechanism() const override; [virtual] | |
get_backendCompileFormatSgFile::outputFormatOption_enum get_backendCompileFormat() const; | |
get_backendCompilerErrorCodeint get_backendCompilerErrorCode() const; | |
get_childIndexvirtual size_t get_childIndex(SgNode* child) const override; [virtual] | index-based access to traversal successors by child node |
get_clang_il_to_graphvizbool get_clang_il_to_graphviz() const; | |
get_collectAllCommentsAndDirectivesbool get_collectAllCommentsAndDirectives() const; | |
get_compileOnlybool get_compileOnly() const; | |
get_cray_pointer_supportbool get_cray_pointer_support() const; | |
get_detect_dangling_pointersint get_detect_dangling_pointers() const; | |
get_exit_after_parserbool get_exit_after_parser() const; | |
get_file_infovirtual Sg_File_Info* get_file_info() const override; [virtual] | Access function calling get_startOfConstruct(), provided to support older interface. |
get_frontendErrorCodeint get_frontendErrorCode() const; | |
get_header_file_unparsing_optimization_header_filebool get_header_file_unparsing_optimization_header_file() const; | |
get_inputFormatSgFile::outputFormatOption_enum get_inputFormat() const; | |
get_inputLanguageSgFile::languageOption_enum get_inputLanguage() const; | |
get_markGeneratedFilesbool get_markGeneratedFiles() const; | |
get_midendErrorCodeint get_midendErrorCode() const; | |
get_multifile_supportbool get_multifile_support() const; | |
get_negative_testbool get_negative_test() const; | |
get_numberOfTraversalSuccessorsvirtual size_t get_numberOfTraversalSuccessors() const override; [virtual] | return number of children in the traversal successor list |
get_objectFileNameWithPathstd::string get_objectFileNameWithPath() const; | |
get_objectFileNameWithoutPathstd::string get_objectFileNameWithoutPath() const; | |
get_openaccbool get_openacc() const; | |
get_openacc_ast_onlybool get_openacc_ast_only() const; | |
get_openacc_parse_onlybool get_openacc_parse_only() const; | |
get_openmpbool get_openmp() const; | |
get_openmp_analyzingbool get_openmp_analyzing() const; | |
get_openmp_ast_onlybool get_openmp_ast_only() const; | |
get_openmp_loweringbool get_openmp_lowering() const; | |
get_openmp_parse_onlybool get_openmp_parse_only() const; | |
get_openmp_processedbool get_openmp_processed() const; | |
get_optimizationbool get_optimization() const; | |
get_originalCommandLineArgumentListSgStringList const& get_originalCommandLineArgumentList() const; | |
get_outputFormatSgFile::outputFormatOption_enum get_outputFormat() const; | |
get_outputLanguageSgFile::languageOption_enum get_outputLanguage() const; | |
get_preprocessorDirectivesAndCommentsListROSEAttributesListContainer* get_preprocessorDirectivesAndCommentsList() const; | |
get_projectSgProject* get_project(); | Get the owning SgProject IR node if available. |
get_requires_C_preprocessorbool get_requires_C_preprocessor() const; | |
get_skipAstConsistancyTestsbool get_skipAstConsistancyTests() const; | |
get_skip_commentsAndDirectivesbool get_skip_commentsAndDirectives() const; | |
get_skip_parserbool get_skip_parser() const; | |
get_skip_transformationbool get_skip_transformation() const; | |
get_skip_unparsebool get_skip_unparse() const; | |
get_skipfinalCompileStepbool get_skipfinalCompileStep() const; | |
get_sourceFileNameWithPathstd::string get_sourceFileNameWithPath() const; | |
get_sourceFileNameWithoutPathstd::string get_sourceFileNameWithoutPath() const; | |
get_sourceFileUsesCoArrayFortranFileExtensionbool get_sourceFileUsesCoArrayFortranFileExtension() const; | |
get_sourceFileUsesCppFileExtensionbool get_sourceFileUsesCppFileExtension() const; | |
get_sourceFileUsesFortran2003FileExtensionbool get_sourceFileUsesFortran2003FileExtension() const; | |
get_sourceFileUsesFortran2008FileExtensionbool get_sourceFileUsesFortran2008FileExtension() const; | |
get_sourceFileUsesFortran77FileExtensionbool get_sourceFileUsesFortran77FileExtension() const; | |
get_sourceFileUsesFortran90FileExtensionbool get_sourceFileUsesFortran90FileExtension() const; | |
get_sourceFileUsesFortran95FileExtensionbool get_sourceFileUsesFortran95FileExtension() const; | |
get_sourceFileUsesFortranFileExtensionbool get_sourceFileUsesFortranFileExtension() const; | |
get_standardstandard_enum get_standard() const; | |
get_startOfConstructvirtual Sg_File_Info* get_startOfConstruct() const override; [virtual] | |
get_strict_language_handlingbool get_strict_language_handling() const; | |
get_traversalSuccessorByIndexvirtual SgNode* get_traversalSuccessorByIndex(size_t idx) const override; [virtual] | index-based access to traversal successors by index number |
get_traversalSuccessorContainervirtual std::vector<SgNode*> get_traversalSuccessorContainer() const override; [virtual] | container of pointers to AST successor nodes used in the traversal overridden in every class by generated implementation |
get_traversalSuccessorIsListElementvirtual std::vector<bool> get_traversalSuccessorIsListElement() const override; [virtual] | |
get_traversalSuccessorNamesContainervirtual std::vector<std::string> get_traversalSuccessorNamesContainer() const override; [virtual] | container of names of variables or container indices used used in the traversal to access AST successor nodes overridden in every class by generated implementation |
get_unparseHeaderFilesbool get_unparseHeaderFiles() const; | |
get_unparse_includesbool get_unparse_includes() const; | |
get_unparse_line_directivesbool get_unparse_line_directives() const; | |
get_unparse_output_filenamestd::string get_unparse_output_filename() const; | |
get_unparse_template_astbool get_unparse_template_ast() const; | |
get_unparse_tokensbool get_unparse_tokens() const; | |
get_unparserErrorCodeint get_unparserErrorCode() const; | |
get_useBackendOnlybool get_useBackendOnly() const; | |
get_verboseint get_verbose() const; | |
initializationvoid initialization(); | Initialization support for constructors |
initializeSourcePositionvoid initializeSourcePosition(std::string const& sourceFilename); | |
is_gnu_standardbool is_gnu_standard() const; | |
numberOfAttributesvirtual int numberOfAttributes() const override; [virtual] | Returns the number of attributes on this IR node. |
operator deletevoid operator delete( void* pointer, size_t size); | deallocated memory for IR node (returns memory to memory pool for reuse) |
operator newvoid* operator new(size_t size); | returns pointer to newly allocated IR node |
processBackendSpecificCommandLineOptionsvoid processBackendSpecificCommandLineOptions(std::vector<std::string> const& argv); | Record backend language handling options from the original command line. |
processDataMemberReferenceToPointersvirtual void processDataMemberReferenceToPointers(ReferenceToPointerHandler*) override; [virtual] | Pass references to stored node pointers to a handler. |
processRoseCommandLineOptionsvoid processRoseCommandLineOptions(std::vector<std::string>& argv); | |
removeAttributevirtual void removeAttribute(std::string s) override; [virtual] | Remove attribute of name 's' if present. |
returnDataMemberPointersvirtual std::vector<std::pair<SgNode*, std::string>> returnDataMemberPointers() const override; [virtual] | Return the node pointers stored in this node's data members. |
roseRTIvirtual RTIReturnType roseRTI() override; [virtual] | return C++ Runtime-Time-Information |
runFrontendvoid runFrontend(int& nextErrorCode); | |
sage_class_namevirtual char const* sage_class_name() const override; [virtual] | returns a C style string (char*) representing the class name |
secondaryPassOverSourceFilevoid secondaryPassOverSourceFile(); | Fixups to be run when the whole project has been created (this attaches preprocessing information). |
setAttributevirtual void setAttribute( std::string s, AstAttribute* a) override; [virtual] | This is a wrapper function with the following semantics: if no attribute of name 's' exists then addNewAttribute(s,a); is called, otherwise updateAttribute(s,a); is called. |
set_C11_gnu_onlyvoid set_C11_gnu_only(); | |
set_C11_onlyvoid set_C11_only(); | |
set_C17_gnu_onlyvoid set_C17_gnu_only(); | |
set_C17_onlyvoid set_C17_only(); | |
set_C23_gnu_onlyvoid set_C23_gnu_only(); | |
set_C23_onlyvoid set_C23_only(); | |
set_C2y_gnu_onlyvoid set_C2y_gnu_only(); | |
set_C2y_onlyvoid set_C2y_only(); | |
set_C89_gnu_onlyvoid set_C89_gnu_only(); | |
set_C89_onlyvoid set_C89_only(); | |
set_C90_gnu_onlyvoid set_C90_gnu_only(); | |
set_C90_onlyvoid set_C90_only(); | |
set_C99_gnu_onlyvoid set_C99_gnu_only(); | |
set_C99_onlyvoid set_C99_only(); | |
set_C_onlyvoid set_C_only(bool C_only); | |
set_CoArrayFortran_onlyvoid set_CoArrayFortran_only(bool CoArrayFortran_only); | |
set_Cuda_onlyvoid set_Cuda_only(bool Cuda_only); | |
set_Cxx03_gnu_onlyvoid set_Cxx03_gnu_only(); | |
set_Cxx03_onlyvoid set_Cxx03_only(); | |
set_Cxx11_gnu_onlyvoid set_Cxx11_gnu_only(); | |
set_Cxx11_onlyvoid set_Cxx11_only(); | |
set_Cxx14_gnu_onlyvoid set_Cxx14_gnu_only(); | |
set_Cxx14_onlyvoid set_Cxx14_only(); | |
set_Cxx17_gnu_onlyvoid set_Cxx17_gnu_only(); | |
set_Cxx17_onlyvoid set_Cxx17_only(); | |
set_Cxx20_gnu_onlyvoid set_Cxx20_gnu_only(); | |
set_Cxx20_onlyvoid set_Cxx20_only(); | |
set_Cxx23_gnu_onlyvoid set_Cxx23_gnu_only(); | |
set_Cxx23_onlyvoid set_Cxx23_only(); | |
set_Cxx26_gnu_onlyvoid set_Cxx26_gnu_only(); | |
set_Cxx26_onlyvoid set_Cxx26_only(); | |
set_Cxx98_gnu_onlyvoid set_Cxx98_gnu_only(); | |
set_Cxx98_onlyvoid set_Cxx98_only(); | |
set_Cxx_onlyvoid set_Cxx_only(bool Cxx_only); | |
set_F2003_onlyvoid set_F2003_only(); | |
set_F2008_onlyvoid set_F2008_only(); | |
set_F2018_onlyvoid set_F2018_only(); | |
set_F77_onlyvoid set_F77_only(); | |
set_F90_onlyvoid set_F90_only(); | |
set_F95_onlyvoid set_F95_only(); | |
set_Fortran_onlyvoid set_Fortran_only(bool Fortran_only); | |
set_OpenCL_onlyvoid set_OpenCL_only(bool OpenCL_only); | |
set_attributeMechanismvirtual void set_attributeMechanism(AstAttributeMechanism* attributeMechanism) override; [virtual] | |
set_backendCompileFormatvoid set_backendCompileFormat(SgFile::outputFormatOption_enum backendCompileFormat); | |
set_backendCompilerErrorCodevoid set_backendCompilerErrorCode(int backendCompilerErrorCode); | |
set_clang_il_to_graphvizvoid set_clang_il_to_graphviz(bool clang_il_to_graphviz); | |
set_collectAllCommentsAndDirectivesvoid set_collectAllCommentsAndDirectives(bool collectAllCommentsAndDirectives); | |
set_compileOnlyvoid set_compileOnly(bool compileOnly); | |
set_cray_pointer_supportvoid set_cray_pointer_support(bool cray_pointer_support); | |
set_default_standardvoid set_default_standard(); | |
set_detect_dangling_pointersvoid set_detect_dangling_pointers(int detect_dangling_pointers); | |
set_exit_after_parservoid set_exit_after_parser(bool exit_after_parser); | |
set_file_infovoid set_file_info(Sg_File_Info* fileinfo); | Access function calling set_startOfConstruct(), provided to support older interface. |
set_frontendErrorCodevoid set_frontendErrorCode(int frontendErrorCode); | |
set_gnu_standardvoid set_gnu_standard(); | |
set_header_file_unparsing_optimization_header_filevoid set_header_file_unparsing_optimization_header_file(bool header_file_unparsing_optimization_header_file); | |
set_inputFormatvoid set_inputFormat(SgFile::outputFormatOption_enum inputFormat); | |
set_inputLanguagevoid set_inputLanguage(SgFile::languageOption_enum inputLanguage); | |
set_markGeneratedFilesvoid set_markGeneratedFiles(bool markGeneratedFiles); | |
set_midendErrorCodevoid set_midendErrorCode(int midendErrorCode); | |
set_multifile_supportvoid set_multifile_support(bool multifile_support); | |
set_negative_testvoid set_negative_test(bool negative_test); | |
set_objectFileNameWithPathvoid set_objectFileNameWithPath(std::string objectFileNameWithPath); | |
set_objectFileNameWithoutPathvoid set_objectFileNameWithoutPath(std::string objectFileNameWithoutPath); | |
set_openaccvoid set_openacc(bool openacc); | |
set_openacc_ast_onlyvoid set_openacc_ast_only(bool openacc_ast_only); | |
set_openacc_parse_onlyvoid set_openacc_parse_only(bool openacc_parse_only); | |
set_openmpvoid set_openmp(bool openmp); | |
set_openmp_analyzingvoid set_openmp_analyzing(bool openmp_analyzing); | |
set_openmp_ast_onlyvoid set_openmp_ast_only(bool openmp_ast_only); | |
set_openmp_loweringvoid set_openmp_lowering(bool openmp_lowering); | |
set_openmp_parse_onlyvoid set_openmp_parse_only(bool openmp_parse_only); | |
set_openmp_processedvoid set_openmp_processed(bool openmp_processed); | |
set_optimizationvoid set_optimization(bool optimization); | |
set_outputFormatvoid set_outputFormat(SgFile::outputFormatOption_enum outputFormat); | |
set_outputLanguagevoid set_outputLanguage(SgFile::languageOption_enum outputLanguage); | |
set_preprocessorDirectivesAndCommentsListvoid set_preprocessorDirectivesAndCommentsList(ROSEAttributesListContainer* preprocessorDirectivesAndCommentsList); | |
set_requires_C_preprocessorvoid set_requires_C_preprocessor(bool requires_C_preprocessor); | |
set_skipAstConsistancyTestsvoid set_skipAstConsistancyTests(bool skipAstConsistancyTests); | |
set_skip_commentsAndDirectivesvoid set_skip_commentsAndDirectives(bool skip_commentsAndDirectives); | |
set_skip_parservoid set_skip_parser(bool skip_parser); | |
set_skip_transformationvoid set_skip_transformation(bool skip_transformation); | |
set_skip_unparsevoid set_skip_unparse(bool skip_unparse); | |
set_skipfinalCompileStepvoid set_skipfinalCompileStep(bool skipfinalCompileStep); | |
set_sourceFileNameWithPathvoid set_sourceFileNameWithPath(std::string sourceFileNameWithPath); | |
set_sourceFileNameWithoutPathvoid set_sourceFileNameWithoutPath(std::string sourceFileNameWithoutPath); | |
set_sourceFileUsesCoArrayFortranFileExtensionvoid set_sourceFileUsesCoArrayFortranFileExtension(bool sourceFileUsesCoArrayFortranFileExtension); | |
set_sourceFileUsesCppFileExtensionvoid set_sourceFileUsesCppFileExtension(bool sourceFileUsesCppFileExtension); | |
set_sourceFileUsesFortran2003FileExtensionvoid set_sourceFileUsesFortran2003FileExtension(bool sourceFileUsesFortran2003FileExtension); | |
set_sourceFileUsesFortran2008FileExtensionvoid set_sourceFileUsesFortran2008FileExtension(bool sourceFileUsesFortran2008FileExtension); | |
set_sourceFileUsesFortran77FileExtensionvoid set_sourceFileUsesFortran77FileExtension(bool sourceFileUsesFortran77FileExtension); | |
set_sourceFileUsesFortran90FileExtensionvoid set_sourceFileUsesFortran90FileExtension(bool sourceFileUsesFortran90FileExtension); | |
set_sourceFileUsesFortran95FileExtensionvoid set_sourceFileUsesFortran95FileExtension(bool sourceFileUsesFortran95FileExtension); | |
set_sourceFileUsesFortranFileExtensionvoid set_sourceFileUsesFortranFileExtension(bool sourceFileUsesFortranFileExtension); | |
set_standardvoid set_standard(standard_enum e_std); | |
set_startOfConstructvoid set_startOfConstruct(Sg_File_Info* startOfConstruct); | |
set_strict_language_handlingvoid set_strict_language_handling(bool strict_language_handling); | |
set_unparseHeaderFilesvoid set_unparseHeaderFiles(bool unparseHeaderFiles); | |
set_unparse_includesvoid set_unparse_includes(bool unparse_includes); | |
set_unparse_line_directivesvoid set_unparse_line_directives(bool unparse_line_directives); | |
set_unparse_output_filenamevoid set_unparse_output_filename(std::string unparse_output_filename); | |
set_unparse_template_astvoid set_unparse_template_ast(bool unparse_template_ast); | |
set_unparse_tokensvoid set_unparse_tokens(bool unparse_tokens); | |
set_unparserErrorCodevoid set_unparserErrorCode(int unparserErrorCode); | |
set_useBackendOnlyvoid set_useBackendOnly(bool useBackendOnly); | |
set_verbosevoid set_verbose(int verbose); | |
unparsevoid unparse( UnparseFormatHelp* unparseHelp = NULL, UnparseDelegate* unparseDelagate = NULL); | Generate the C++ file representing the AST |
unset_gnu_standardvoid unset_gnu_standard(); | |
updateAttributevirtual void updateAttribute( std::string s, AstAttribute* a) override; [virtual] | Replace existing attribute of name 's' with new AstAttribute. |
variantTvirtual VariantT variantT() const override; [virtual] | returns new style SageIII enum values |
Static Member Functions¶
| Name | Description |
|---|---|
generate_C_preprocessor_intermediate_filenamestatic std::string generate_C_preprocessor_intermediate_filename(std::string filename); | Support for C preprocessed files (Fortran only). |
get_outputLanguageOptionNamestatic std::string get_outputLanguageOptionName(languageOption_enum lang); | |
memoryUsagestatic size_t memoryUsage(); | Returns the size in bytes of the total memory allocated for all IR nodes of this type |
numberOfNodesstatic size_t numberOfNodes(); | Returns the total number of IR nodes of this type |
stripRoseCommandLineOptionsstatic void stripRoseCommandLineOptions(std::vector<std::string>& argv); | function that removes all rose related options from a command line |
traverseMemoryPoolNodesstatic void traverseMemoryPoolNodes(ROSE_VisitTraversal& visit); | FOR INTERNAL USE Support for visitor pattern over all IR nodes by type of IR node. |
traverseMemoryPoolVisitorPatternstatic void traverseMemoryPoolVisitorPattern(ROSE_VisitorPattern& visitor); | FOR INTERNAL USE Support for visitor pattern. |
usagestatic void usage(); | |
validateFortranCommandLineOptionsstatic void validateFortranCommandLineOptions(std::vector<std::string> const& argv); | Validate Fortran options before passing the command line to Flang. |
visitRepresentativeNodestatic void visitRepresentativeNode(ROSE_VisitTraversal& visit); | FOR INTERNAL USE Support for type-based traversal. |
Static Data Members¶
| Name | Description |
|---|---|
free_slots | Free slots, each numbered pool_index * pool_size + slot_index. The last entry is allocated next. |
pool_live_flags | |
pool_size | |
pools |
Protected Data Members¶
Friends¶
| Name | Description |
|---|---|
isSgFile | Casts pointer from base class to derived class (for const pointers) |
isSgFile | Casts pointer from base class to derived class |
Derived Classes¶
| Name | Description |
|---|---|
SgSourceFile |
Created with MrDocs