diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-27 13:09:20 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-27 13:12:33 +0100 |
commit | 1f078fcaddd45bb074e4d0a4933db01f6e8b623e (patch) | |
tree | b3c91e350f82022ff0a4d2d20f89ea050b6ea69b /compilerplugins/clang/literalalternative.cxx | |
parent | a94f0f92e8b09f6cd3989b646500ff5814274621 (diff) |
Prepare dual-mode compiler plugin feature
...which can act as either a rewriter or a non-rewriter that emits warnings.
Also added COMPILER_PLUGIN_WARNINGS_ONLY=X to demote warnings from plugin X from
errors to warnings, even under --enable-werror.
Change-Id: I05361936240a890515c6bba2459565417c1746b7
Diffstat (limited to 'compilerplugins/clang/literalalternative.cxx')
-rw-r--r-- | compilerplugins/clang/literalalternative.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/literalalternative.cxx b/compilerplugins/clang/literalalternative.cxx index 4d2711c3d64c..0d29e0d1d050 100644 --- a/compilerplugins/clang/literalalternative.cxx +++ b/compilerplugins/clang/literalalternative.cxx @@ -21,7 +21,7 @@ class LiteralAlternative: public RecursiveASTVisitor<LiteralAlternative>, public loplugin::Plugin { public: - explicit LiteralAlternative(CompilerInstance & compiler): Plugin(compiler) {} + explicit LiteralAlternative(InstantiationData const & data): Plugin(data) {} virtual void run() override { TraverseDecl(compiler.getASTContext().getTranslationUnitDecl()); } |