diff options
-rw-r--r-- | compilerplugins/clang/compileplugin.hxx | 2 | ||||
-rw-r--r-- | compilerplugins/clang/unusedvariablecheck.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/compilerplugins/clang/compileplugin.hxx b/compilerplugins/clang/compileplugin.hxx index a02b36005e4b..6c854d1e0179 100644 --- a/compilerplugins/clang/compileplugin.hxx +++ b/compilerplugins/clang/compileplugin.hxx @@ -33,7 +33,7 @@ class Plugin inline bool Plugin::ignoreLocation( const Decl* decl ) { - return ignoreLocation( decl->getLocStart()); + return ignoreLocation( decl->getLocation()); } inline diff --git a/compilerplugins/clang/unusedvariablecheck.cxx b/compilerplugins/clang/unusedvariablecheck.cxx index 7d9a170153ca..b6b867dec89c 100644 --- a/compilerplugins/clang/unusedvariablecheck.cxx +++ b/compilerplugins/clang/unusedvariablecheck.cxx @@ -87,11 +87,11 @@ bool UnusedVariableCheck::VisitNamedDecl( NamedDecl* declaration ) if( !func->doesThisDeclarationHaveABody()) return true; report( DiagnosticsEngine::Warning, "unused parameter %0 [loplugin]", - var->getLocStart()) << var->getDeclName(); + var->getLocation()) << var->getDeclName(); } else report( DiagnosticsEngine::Warning, "unused variable %0 [loplugin]", - var->getLocStart()) << var->getDeclName(); + var->getLocation()) << var->getDeclName(); } } return true; |