diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-03-21 16:42:10 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-03-28 18:01:00 +0100 |
commit | 153a69cad2efdb38f7da50bcd25158d127a944f4 (patch) | |
tree | 3ae6a544f73bd0821b47d0763f45a7f62812c35a /compilerplugins/clang/unusedvariablecheck.hxx | |
parent | 9ab15ecc4f162cd6d8ce305f0d7ac064c1e1704c (diff) |
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
Diffstat (limited to 'compilerplugins/clang/unusedvariablecheck.hxx')
-rw-r--r-- | compilerplugins/clang/unusedvariablecheck.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/unusedvariablecheck.hxx b/compilerplugins/clang/unusedvariablecheck.hxx index 6ccdee3e193e..98df658026c5 100644 --- a/compilerplugins/clang/unusedvariablecheck.hxx +++ b/compilerplugins/clang/unusedvariablecheck.hxx @@ -21,7 +21,7 @@ class UnusedVariableCheck , public Plugin { public: - explicit UnusedVariableCheck( ASTContext& context ); + explicit UnusedVariableCheck( CompilerInstance& compiler ); virtual void run(); bool VisitVarDecl( VarDecl* var ); }; |