[Libreoffice-commits] core.git: compilerplugins/clang
Noel Grandin
noel at peralex.com
Tue Jul 29 00:51:33 PDT 2014
compilerplugins/clang/externandnotdefined.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 145b0de1569229c797084040caa2386c8cf1ee4e
Author: Noel Grandin <noel at 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()) };
More information about the Libreoffice-commits
mailing list