summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/dyncastvisibility.cxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2019-10-07 15:29:30 +0200
committerLuboš Luňák <l.lunak@collabora.com>2019-10-08 20:46:36 +0200
commitbef96f7a7b4d1dc7bcb01c949e0ae296c969dcee (patch)
tree77462295af716f5afb2645fadcc4034855ee4ee6 /compilerplugins/clang/dyncastvisibility.cxx
parent412c6c1ca9a9ed5c585935e8b6cfc70f1a7152c4 (diff)
better name for a function in compilerplugins
The function is not just about a spelling location. Change-Id: I96e9e9ef7e27a9763397b4b86473c1c30d0e3eeb Reviewed-on: https://gerrit.libreoffice.org/80381 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'compilerplugins/clang/dyncastvisibility.cxx')
-rw-r--r--compilerplugins/clang/dyncastvisibility.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/dyncastvisibility.cxx b/compilerplugins/clang/dyncastvisibility.cxx
index 3aa66e0dc21b..0899fb8d18d0 100644
--- a/compilerplugins/clang/dyncastvisibility.cxx
+++ b/compilerplugins/clang/dyncastvisibility.cxx
@@ -117,7 +117,7 @@ public:
// at least some interesting cases (though it would still not be aggressive enough to
// have found ff570b4b58dbf274d3094d21d974f18b613e9b4b "DocumentSettingsSerializer must
// be SAL_DLLPUBLIC_RTTI for dynamic_cast"):
- auto const file = getFileNameOfSpellingLoc(
+ auto const file = getFilenameOfLocation(
compiler.getSourceManager().getSpellingLoc(rdd->getLocation()));
if (loplugin::hasPathnamePrefix(file, SRCDIR "/include/")) {
std::size_t const n1 = std::strlen(SRCDIR "/include/");