Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
flang/include/flang/Frontend/FrontendOptions.h
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | enum ActionKind { | ||||
/// Parse then output the number of objects in the parse tree and the overall | /// Parse then output the number of objects in the parse tree and the overall | ||||
/// size | /// size | ||||
DebugMeasureParseTree, | DebugMeasureParseTree, | ||||
/// Parse, run semantics and then output the pre-FIR tree | /// Parse, run semantics and then output the pre-FIR tree | ||||
DebugPreFIRTree, | DebugPreFIRTree, | ||||
/// `-fget-definition` | |||||
GetDefinition, | |||||
/// Parse, run semantics and then dump symbol sources map | /// Parse, run semantics and then dump symbol sources map | ||||
GetSymbolsSources | GetSymbolsSources | ||||
/// TODO: RunPreprocessor, EmitLLVM, EmitLLVMOnly, | /// TODO: RunPreprocessor, EmitLLVM, EmitLLVMOnly, | ||||
/// EmitCodeGenOnly, EmitAssembly, (...) | /// EmitCodeGenOnly, EmitAssembly, (...) | ||||
}; | }; | ||||
/// \param suffix The file extension | /// \param suffix The file extension | ||||
▲ Show 20 Lines • Show All 123 Lines • ▼ Show 20 Lines | public: | ||||
/// Instrument the parse to get a more verbose log | /// Instrument the parse to get a more verbose log | ||||
unsigned instrumentedParse_ : 1; | unsigned instrumentedParse_ : 1; | ||||
/// Enable Provenance to character-stream mapping. Allows e.g. IDEs to find | /// Enable Provenance to character-stream mapping. Allows e.g. IDEs to find | ||||
/// symbols based on source-code location. This is not needed in regular | /// symbols based on source-code location. This is not needed in regular | ||||
/// compilation. | /// compilation. | ||||
unsigned needProvenanceRangeToCharBlockMappings_ : 1; | unsigned needProvenanceRangeToCharBlockMappings_ : 1; | ||||
/// Input values from `-fget-definition` | |||||
struct GetDefinitionVals { | |||||
unsigned line; | |||||
unsigned startColumn; | |||||
unsigned endColumn; | |||||
}; | |||||
GetDefinitionVals getDefVals_; | |||||
/// The input files and their types. | /// The input files and their types. | ||||
std::vector<FrontendInputFile> inputs_; | std::vector<FrontendInputFile> inputs_; | ||||
/// The output file, if any. | /// The output file, if any. | ||||
std::string outputFile_; | std::string outputFile_; | ||||
/// The frontend action to perform. | /// The frontend action to perform. | ||||
frontend::ActionKind programAction_; | frontend::ActionKind programAction_; | ||||
Show All 33 Lines |