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:
@@ -23,7 +23,7 @@ class SalLogAreas
|
||||
, public Plugin
|
||||
{
|
||||
public:
|
||||
explicit SalLogAreas( ASTContext& context );
|
||||
explicit SalLogAreas( CompilerInstance& compiler );
|
||||
virtual void run();
|
||||
bool VisitFunctionDecl( FunctionDecl* function );
|
||||
bool VisitCallExpr( CallExpr* call );
|
||||
|
Reference in New Issue
Block a user