summaryrefslogtreecommitdiffstats
path: root/compilerplugins/clang/convertlong.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/convertlong.cxx
parentFix typo (diff)
downloadcore-bef96f7a7b4d1dc7bcb01c949e0ae296c969dcee.tar.gz
core-bef96f7a7b4d1dc7bcb01c949e0ae296c969dcee.zip
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/convertlong.cxx')
-rw-r--r--compilerplugins/clang/convertlong.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/convertlong.cxx b/compilerplugins/clang/convertlong.cxx
index 07ec9e38a7e9..5d2ac82f5849 100644
--- a/compilerplugins/clang/convertlong.cxx
+++ b/compilerplugins/clang/convertlong.cxx
@@ -72,7 +72,7 @@ bool ConvertLong::VisitVarDecl(VarDecl const* varDecl)
{
if (ignoreLocation(varDecl))
return true;
- StringRef fileName{ getFileNameOfSpellingLoc(varDecl->getLocation()) };
+ StringRef fileName{ getFilenameOfLocation(varDecl->getLocation()) };
if (loplugin::isSamePathname(fileName, SRCDIR "/include/tools/bigint.hxx"))
return true;
if (loplugin::isSamePathname(fileName, SRCDIR "/include/tools/solar.h"))