summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/rtlconstasciimacro.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-27 13:09:20 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-27 13:12:33 +0100
commit1f078fcaddd45bb074e4d0a4933db01f6e8b623e (patch)
treeb3c91e350f82022ff0a4d2d20f89ea050b6ea69b /compilerplugins/clang/rtlconstasciimacro.cxx
parenta94f0f92e8b09f6cd3989b646500ff5814274621 (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/rtlconstasciimacro.cxx')
-rw-r--r--compilerplugins/clang/rtlconstasciimacro.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/compilerplugins/clang/rtlconstasciimacro.cxx b/compilerplugins/clang/rtlconstasciimacro.cxx
index 0d7cc05824e36..be627f938e01c 100644
--- a/compilerplugins/clang/rtlconstasciimacro.cxx
+++ b/compilerplugins/clang/rtlconstasciimacro.cxx
@@ -29,7 +29,7 @@ class RtlConstAsciiMacro
, public RewritePlugin
{
public:
- explicit RtlConstAsciiMacro( CompilerInstance& compiler, Rewriter& rewriter );
+ explicit RtlConstAsciiMacro( const InstantiationData& data );
virtual void run() override;
bool VisitCXXConstructExpr( CXXConstructExpr* expr );
bool VisitCXXTemporaryObjectExpr( CXXTemporaryObjectExpr* expr );
@@ -47,8 +47,8 @@ class RtlConstAsciiMacro
bool suitableString;
};
-RtlConstAsciiMacro::RtlConstAsciiMacro( CompilerInstance& compiler, Rewriter& rewriter )
- : RewritePlugin( compiler, rewriter )
+RtlConstAsciiMacro::RtlConstAsciiMacro( const InstantiationData& data )
+ : RewritePlugin( data )
, searchingForString( false )
{
compiler.getPreprocessor().addPPCallbacks( this );