P4C
The P4 Compiler
|
A compilation context for P4Tools that provides a custom compiler configuration. More...
#include <context.h>
Public Member Functions | |
template<typename OptionsDerivedType > | |
CompileContext (CompileContext< OptionsDerivedType > &context) | |
OptionsType & | options () override |
Public Member Functions inherited from P4::P4CContext | |
DiagnosticAction | getDefaultInfoDiagnosticAction () final |
DiagnosticAction | getDefaultWarningDiagnosticAction () final |
void | setDefaultInfoDiagnosticAction (DiagnosticAction action) |
set the default diagnostic action for calls to P4::info() . | |
void | setDefaultWarningDiagnosticAction (DiagnosticAction action) |
set the default diagnostic action for calls to P4::warning() . | |
void | setDiagnosticAction (std::string_view diagnostic, DiagnosticAction action) |
Set the action to take for the given diagnostic. | |
Public Member Functions inherited from P4::BaseCompileContext | |
virtual ErrorReporter & | errorReporter () |
virtual DiagnosticAction | getDefaultErrorDiagnosticAction () |
Static Public Member Functions | |
static CompileContext & | get () |
Static Public Member Functions inherited from P4::P4CContext | |
static P4CContext & | get () |
static const P4CConfiguration & | getConfig () |
Static Public Member Functions inherited from P4::BaseCompileContext | |
static BaseCompileContext & | get () |
Protected Member Functions | |
const CompilerConfiguration & | getConfigImpl () override |
Protected Member Functions inherited from P4::P4CContext | |
virtual bool | isRecognizedDiagnostic (cstring diagnostic) |
Protected Member Functions inherited from P4::BaseCompileContext | |
BaseCompileContext (const BaseCompileContext &other)=default | |
BaseCompileContext & | operator= (const BaseCompileContext &other)=default |
Protected Member Functions inherited from P4::ICompileContext |
A compilation context for P4Tools that provides a custom compiler configuration.
|
inlinestatic |
|
inlineoverrideprotectedvirtual |
Reimplemented from P4::P4CContext.
|
inlineoverridevirtual |
Implements P4::P4CContext.