compilerplugins/clang/externandnotdefined.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 145b0de1569229c797084040caa2386c8cf1ee4e Author: Noel Grandin <n...@peralex.com> Date: Mon Jul 28 13:31:05 2014 +0200 fix for running externandnotdefined plugin on Ubuntu Change-Id: I00804b2dd63df44478a14a3eaf2fdcd4e4ce5d09 diff --git a/compilerplugins/clang/externandnotdefined.cxx b/compilerplugins/clang/externandnotdefined.cxx index e66247f..2deca8a 100644 --- a/compilerplugins/clang/externandnotdefined.cxx +++ b/compilerplugins/clang/externandnotdefined.cxx @@ -54,8 +54,7 @@ bool ExternAndNotDefined::VisitFunctionDecl(const FunctionDecl * functionDecl) { if (functionName == "gdk_x11_screen_get_screen_number") { return true; } - SourceLocation spellingLocation = compiler.getSourceManager().getSpellingLoc(functionDecl->getLocation()); - if (!compat::isInMainFile( compiler.getSourceManager(), spellingLocation)) { + if (!compat::isInMainFile( compiler.getSourceManager(), functionDecl->getLocation())) { return true; } StringRef fileName { compiler.getSourceManager().getFilename(functionDecl->getLocation()) }; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits