ROSE 0.11.145.147
Public Member Functions | Protected Member Functions | List of all members
CppToCppTranslator Class Reference

Description

Default Cpp2Cpp Translator.

Translates a C++ program by invoking the EDG frontend and the ROSE backend, to a slightly reformatted C++ program. The default midend is the identity transformation. This Translator can be customized by overriding frontend/midend/backend. Examples are CppToDotTranslator, CppToJsonTranslator, CppTestTranslator.

Definition at line 19 of file roseTranslators.h.

#include <roseSupport/roseTranslators.h>

Inheritance diagram for CppToCppTranslator:
Inheritance graph
[legend]
Collaboration diagram for CppToCppTranslator:
Collaboration graph
[legend]

Public Member Functions

virtual void setOptions (int argc, char **argv)
 
virtual void setOptions (const std::vector< std::string > &argvList)
 
virtual void frontend ()
 
virtual void midend ()
 
virtual void backend ()
 
virtual int status ()
 the status code allows to report front/mid/backend warnings and errors.
 
virtual void printMessage (std::string s)
 messages to the user (stdout).
 

Protected Member Functions

SgProjectgetAstRoot ()
 This function is used to get the root of the Ast which is generated by the frontend.
 
void setAstRoot (SgProject *)
 The AST root is set by the frontend.
 
void setStatusCode (int code)
 

Member Function Documentation

◆ midend()

virtual void CppToCppTranslator::midend ( )
virtual

Reimplemented in RoseTestTranslator.

◆ backend()

virtual void CppToCppTranslator::backend ( )
virtual

◆ printMessage()

virtual void CppToCppTranslator::printMessage ( std::string  s)
virtual

messages to the user (stdout).

Handles the impact of command line flags on printing of messages to stdout. For example, it is suppressed in preprocessing mode.

◆ setStatusCode()

void CppToCppTranslator::setStatusCode ( int  code)
inlineprotected

Definition at line 41 of file roseTranslators.h.


The documentation for this class was generated from the following file: