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
This commit is contained in:
@@ -41,15 +41,15 @@ class PointerToBool
|
||||
, public Plugin
|
||||
{
|
||||
public:
|
||||
explicit PointerToBool( CompilerInstance& compiler );
|
||||
explicit PointerToBool( const InstantiationData& data );
|
||||
void run();
|
||||
bool VisitImplicitCastExpr( const ImplicitCastExpr* expr );
|
||||
private:
|
||||
bool ignoreConversion( const Stmt* stmt );
|
||||
};
|
||||
|
||||
PointerToBool::PointerToBool( CompilerInstance& compiler )
|
||||
: Plugin( compiler )
|
||||
PointerToBool::PointerToBool( const InstantiationData& data )
|
||||
: Plugin( data )
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user