zenilib
0.5.3.0
|
#include <DirectiveHandler.h>
Inherits pp::DirectiveHandler.
Public Member Functions | |
TDirectiveHandler (TExtensionBehavior &extBehavior, TDiagnostics &diagnostics) | |
virtual | ~TDirectiveHandler () |
const TExtensionBehavior & | extensionBehavior () const |
virtual void | handleError (const pp::SourceLocation &loc, const std::string &msg) |
virtual void | handleExtension (const pp::SourceLocation &loc, const std::string &name, const std::string &behavior) |
virtual void | handlePragma (const pp::SourceLocation &loc, const std::string &name, const std::string &value) |
virtual void | handleVersion (const pp::SourceLocation &loc, int version) |
const TPragma & | pragma () const |
![]() | |
virtual | ~DirectiveHandler () |
Definition at line 16 of file DirectiveHandler.h.
TDirectiveHandler::TDirectiveHandler | ( | TExtensionBehavior & | extBehavior, |
TDiagnostics & | diagnostics | ||
) |
Definition at line 28 of file DirectiveHandler.cpp.
|
virtual |
Definition at line 35 of file DirectiveHandler.cpp.
|
inline |
Definition at line 24 of file DirectiveHandler.h.
Referenced by TParseContext::extensionBehavior().
|
virtual |
Implements pp::DirectiveHandler.
Definition at line 39 of file DirectiveHandler.cpp.
References pp::Diagnostics::ERROR, and TDiagnostics::writeInfo().
|
virtual |
Implements pp::DirectiveHandler.
Definition at line 86 of file DirectiveHandler.cpp.
References EBhDisable, EBhEnable, EBhRequire, EBhUndefined, EBhWarn, pp::Diagnostics::ERROR, getBehavior(), UNREACHABLE, pp::Diagnostics::WARNING, and TDiagnostics::writeInfo().
|
virtual |
Implements pp::DirectiveHandler.
Definition at line 45 of file DirectiveHandler.cpp.
References TPragma::debug, pp::Diagnostics::ERROR, TPragma::optimize, pp::Diagnostics::report(), pp::Diagnostics::UNRECOGNIZED_PRAGMA, and TDiagnostics::writeInfo().
|
virtual |
Implements pp::DirectiveHandler.
Definition at line 148 of file DirectiveHandler.cpp.
References pp::Diagnostics::ERROR, str, version, and TDiagnostics::writeInfo().
Definition at line 23 of file DirectiveHandler.h.
Referenced by TParseContext::pragma().