![]() |
P4C
The P4 Compiler
|
Public Member Functions | |
| const char * | getIncludePath () const override |
| std::vector< const char * > * | process (int argc, char *const argv[]) override |
Public Member Functions inherited from P4::Util::Options | |
| cstring | getBinaryName () |
| cstring | getBuildDate () |
| cstring | getCompileCommand () |
| virtual std::vector< const char * > * | process_options (int argc, char *const argv[]) |
| virtual void | usage () |
Additional Inherited Members | |
Public Types inherited from P4::Util::Options | |
| enum | OptionFlags { Default = 0 , Hide = 1 << 0 , OptionalArgument = 1 << 1 } |
| using | OptionProcessor = std::function<bool(const char *)> |
Protected Member Functions inherited from P4::Util::Options | |
| Options (std::string_view message) | |
| void | registerOption (const char *option, const char *argName, OptionProcessor processor, const char *description, OptionFlags flags=OptionFlags::Default) |
| void | registerUsage (const char *msg) |
| void | setOutStream (std::ostream *out) |
| virtual bool | validateOptions () const |
Protected Attributes inherited from P4::Util::Options | |
| std::vector< const char * > | additionalUsage |
| const char * | binaryName |
| cstring | buildDate |
| bool | collectUnknownOptions = false |
| cstring | compileCommand |
| cstring | message |
| std::vector< cstring > | optionOrder |
| std::map< cstring, const Option * > | options |
| std::ostream * | outStream = &std::cerr |
| std::vector< const char * > | remainingOptions |
|
inlineoverridevirtual |
Implements P4::Util::Options.
|
inlineoverridevirtual |
Process options; return list of remaining options. Also extracts the command name, startup time and saves a copy of the literal commandline for future messages.
If subclasses override this method, they should call the superclass implementation.
Reimplemented from P4::Util::Options.