From 1f078fcaddd45bb074e4d0a4933db01f6e8b623e Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 27 Jan 2014 13:09:20 +0100 Subject: 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 --- compilerplugins/clang/rtlconstasciimacro.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'compilerplugins/clang/rtlconstasciimacro.cxx') diff --git a/compilerplugins/clang/rtlconstasciimacro.cxx b/compilerplugins/clang/rtlconstasciimacro.cxx index 0d7cc05824e3..be627f938e01 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 ); -- cgit