![]()  | 
  
    P4C
    
   The P4 Compiler 
   | 
 
#include <parser_options.h>
Public Member Functions | |
| template<typename OptionsDerivedType > | |
| P4CContextWithOptions (P4CContextWithOptions< OptionsDerivedType > &context) | |
| template<typename OptionsDerivedType > | |
| P4CContextWithOptions & | operator= (P4CContextWithOptions< OptionsDerivedType > &context) | 
| OptionsType & | options () override | 
  Public Member Functions inherited from P4CContext | |
| DiagnosticAction | getDefaultInfoDiagnosticAction () final | 
| DiagnosticAction | getDefaultWarningDiagnosticAction () final | 
| DiagnosticAction | getDiagnosticAction (cstring diagnostic, DiagnosticAction defaultAction) final | 
| void | setDefaultInfoDiagnosticAction (DiagnosticAction action) | 
set the default diagnostic action for calls to info().  | |
| void | setDefaultWarningDiagnosticAction (DiagnosticAction action) | 
set the default diagnostic action for calls to warning().  | |
| void | setDiagnosticAction (std::string_view diagnostic, DiagnosticAction action) | 
| Set the action to take for the given diagnostic.  | |
  Public Member Functions inherited from BaseCompileContext | |
| virtual ErrorReporter & | errorReporter () | 
| virtual DiagnosticAction | getDefaultErrorDiagnosticAction () | 
Static Public Member Functions | |
| static P4CContextWithOptions & | get () | 
  Static Public Member Functions inherited from P4CContext | |
| static P4CContext & | get () | 
| static const P4CConfiguration & | getConfig () | 
  Static Public Member Functions inherited from BaseCompileContext | |
| static BaseCompileContext & | get () | 
Additional Inherited Members | |
  Protected Member Functions inherited from P4CContext | |
| virtual const P4CConfiguration & | getConfigImpl () | 
| virtual bool | isRecognizedDiagnostic (cstring diagnostic) | 
  Protected Member Functions inherited from BaseCompileContext | |
| BaseCompileContext (const BaseCompileContext &other)=default | |
| BaseCompileContext & | operator= (const BaseCompileContext &other)=default | 
A utility template which can be used to easily make subclasses of P4CContext which expose a particular subclass of CompilerOptions. This is provided as a convenience since this is all many backends need.
      
  | 
  inlinestatic | 
      
  | 
  inlineoverridevirtual | 
Implements P4CContext.