diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2019-10-07 15:29:30 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2019-10-08 20:46:36 +0200 |
commit | bef96f7a7b4d1dc7bcb01c949e0ae296c969dcee (patch) | |
tree | 77462295af716f5afb2645fadcc4034855ee4ee6 /compilerplugins/clang/typedefparam.cxx | |
parent | 412c6c1ca9a9ed5c585935e8b6cfc70f1a7152c4 (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/typedefparam.cxx')
-rw-r--r-- | compilerplugins/clang/typedefparam.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/typedefparam.cxx b/compilerplugins/clang/typedefparam.cxx index 2c7031ff7af0..7ea4df79d2af 100644 --- a/compilerplugins/clang/typedefparam.cxx +++ b/compilerplugins/clang/typedefparam.cxx @@ -104,7 +104,7 @@ bool TypedefParam::VisitCXXMethodDecl(CXXMethodDecl const* methodDecl) if (methodDecl->getCanonicalDecl() != methodDecl) return true; - StringRef aFileName = getFileNameOfSpellingLoc( + StringRef aFileName = getFilenameOfLocation( compiler.getSourceManager().getSpellingLoc(compat::getBeginLoc(methodDecl))); // seems to be using typedefs as a form of documentation for method params if (loplugin::hasPathnamePrefix(aFileName, SRCDIR "/sw/source/filter/ww8/ww8scan.hxx")) |