FLANG
Public Member Functions | List of all members
Fortran::frontend::PluginParseTreeAction Class Referenceabstract
Inheritance diagram for Fortran::frontend::PluginParseTreeAction:
Fortran::frontend::PrescanAndSemaAction Fortran::frontend::FrontendAction

Public Member Functions

Fortran::parser::ParsinggetParsing ()
 
std::unique_ptr< llvm::raw_pwrite_stream > createOutputFile (llvm::StringRef extension)
 
- Public Member Functions inherited from Fortran::frontend::FrontendAction
CompilerInstancegetInstance () const
 
void setInstance (CompilerInstance *value)
 
const FrontendInputFilegetCurrentInput () const
 
llvm::StringRef getCurrentFile () const
 
llvm::StringRef getCurrentFileOrBufferName () const
 
void setCurrentInput (const FrontendInputFile &currentIntput)
 
bool beginSourceFile (CompilerInstance &ci, const FrontendInputFile &input)
 
llvm::Error execute ()
 Run the action.
 
void endSourceFile ()
 

Additional Inherited Members

- Protected Member Functions inherited from Fortran::frontend::FrontendAction
bool runPrescan ()
 
bool runParse (bool emitMessages)
 
bool runSemanticChecks ()
 
bool generateRtTypeTables ()
 
bool reportFatalSemanticErrors ()
 
bool reportFatalScanningErrors ()
 
bool reportFatalParsingErrors ()
 
virtual bool shouldEraseOutputFiles ()
 

Member Function Documentation

◆ createOutputFile()

std::unique_ptr< llvm::raw_pwrite_stream > PluginParseTreeAction::createOutputFile ( llvm::StringRef  extension = "")

Creates an output file. This is just a wrapper for calling CreateDefaultOutputFile from CompilerInstance. Use it to make sure that your plugin respects driver's -o flag.

Parameters
extensionThe extension to use for the output file (ignored when the user decides to print to stdout via -o -)
Returns
Null on error, ostream for the output file otherwise

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