summaryrefslogtreecommitdiffstats
path: root/compilerplugins/clang/store/revisibility.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/store/revisibility.cxx')
-rw-r--r--compilerplugins/clang/store/revisibility.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/store/revisibility.cxx b/compilerplugins/clang/store/revisibility.cxx
index 9aa04f7b2560..3ca541c1fadc 100644
--- a/compilerplugins/clang/store/revisibility.cxx
+++ b/compilerplugins/clang/store/revisibility.cxx
@@ -63,7 +63,7 @@ bool ReVisibility::VisitFunctionDecl(FunctionDecl const * decl) {
}
}
if (decl->isThisDeclarationADefinition() && first != nullptr
- && !(compiler.getSourceManager().getFilename(
+ && !(getFileNameOfSpellingLoc(
compiler.getSourceManager().getSpellingLoc(
decl->getLocation()))
.startswith(SRCDIR "/libreofficekit/")))