![]() |
P4C
The P4 Compiler
|
#include <parser_options.h>
Public Member Functions | |
| DiagnosticAction | getDefaultInfoDiagnosticAction () final |
| DiagnosticAction | getDefaultWarningDiagnosticAction () final |
| DiagnosticAction | getDiagnosticAction (cstring diagnostic, DiagnosticAction defaultAction) final |
| virtual ParserOptions & | options ()=0 |
| 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 P4CContext & | get () |
| static const P4CConfiguration & | getConfig () |
Static Public Member Functions inherited from P4::BaseCompileContext | |
| static BaseCompileContext & | get () |
Protected Member Functions | |
| virtual const P4CConfiguration & | getConfigImpl () |
| virtual bool | isRecognizedDiagnostic (cstring diagnostic) |
Protected Member Functions inherited from P4::BaseCompileContext | |
| BaseCompileContext (const BaseCompileContext &other)=default | |
| BaseCompileContext & | operator= (const BaseCompileContext &other)=default |
A compilation context which exposes compiler options and a compiler configuration.
|
static |
|
static |
|
protectedvirtual |
Reimplemented in P4::P4Tools::CompileContext< OptionsType >.
|
inlinefinalvirtual |
P4::info(). Reimplemented from P4::BaseCompileContext.
|
inlinefinalvirtual |
P4::warning(). Reimplemented from P4::BaseCompileContext.
|
inlinefinalvirtual |
Reimplemented from P4::BaseCompileContext.
|
protectedvirtual |
|
pure virtual |
Implemented in P4::P4CContextWithOptions< OptionsType >, P4::P4CContextWithOptions< BMV2Options >, P4::P4CContextWithOptions< BMV2Options >, P4::P4CContextWithOptions< DpdkOptions >, P4::P4CContextWithOptions< DpdkOptions >, P4::P4CContextWithOptions< EbpfOptions >, P4::P4CContextWithOptions< EbpfOptions >, P4::P4CContextWithOptions< Options >, P4::P4CContextWithOptions< Options >, P4::P4CContextWithOptions< P4fmtOptions >, P4::P4CContextWithOptions< P4fmtOptions >, P4::P4CContextWithOptions< P4ReachabilityOptions >, P4::P4CContextWithOptions< P4ReachabilityOptions >, P4::P4CContextWithOptions< P4TestOptions >, P4::P4CContextWithOptions< P4TestOptions >, P4::P4CContextWithOptions< PnaNicOptions >, P4::P4CContextWithOptions< PnaNicOptions >, P4::P4CContextWithOptions< PsaSwitchOptions >, P4::P4CContextWithOptions< PsaSwitchOptions >, P4::P4CContextWithOptions< SimpleSwitchOptions >, P4::P4CContextWithOptions< SimpleSwitchOptions >, P4::P4CContextWithOptions< TCOptions >, P4::P4CContextWithOptions< TCOptions >, and P4::P4Tools::CompileContext< OptionsType >.