pass around CompilerInstance rather than ASTContext
It's possible to get the latter from the former, and the former is useful for other things too (access to the preprocessor, for example). Change-Id: I708d709129fd3a35bf7c63da4de09c2e696b382d
This commit is contained in:
@@ -21,7 +21,7 @@ class PostfixIncrementFix
|
||||
, public RewritePlugin
|
||||
{
|
||||
public:
|
||||
explicit PostfixIncrementFix( ASTContext& context, Rewriter& rewriter );
|
||||
explicit PostfixIncrementFix( CompilerInstance& compiler, Rewriter& rewriter );
|
||||
virtual void run();
|
||||
bool VisitFunctionDecl( FunctionDecl* declaration );
|
||||
private:
|
||||
|
Reference in New Issue
Block a user