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/stringconstant.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/stringconstant.cxx')
-rw-r--r-- | compilerplugins/clang/stringconstant.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compilerplugins/clang/stringconstant.cxx b/compilerplugins/clang/stringconstant.cxx index ed2fd52b75b0..ed332e5644e0 100644 --- a/compilerplugins/clang/stringconstant.cxx +++ b/compilerplugins/clang/stringconstant.cxx @@ -417,7 +417,7 @@ bool StringConstant::VisitCallExpr(CallExpr const * expr) { // u.equalsIgnoreAsciiCaseAscii("foo") -> // u.equalsIngoreAsciiCase("foo"): - auto file = getFileNameOfSpellingLoc( + auto file = getFilenameOfLocation( compiler.getSourceManager().getSpellingLoc(compat::getBeginLoc(expr))); if (loplugin::isSamePathname( file, SRCDIR "/sal/qa/rtl/strings/test_oustring_compare.cxx")) @@ -435,7 +435,7 @@ bool StringConstant::VisitCallExpr(CallExpr const * expr) { { // u.equalsIgnoreAsciiCaseAsciiL("foo", 3) -> // u.equalsIngoreAsciiCase("foo"): - auto file = getFileNameOfSpellingLoc( + auto file = getFilenameOfLocation( compiler.getSourceManager().getSpellingLoc(compat::getBeginLoc(expr))); if (loplugin::isSamePathname( file, SRCDIR "/sal/qa/rtl/strings/test_oustring_compare.cxx")) @@ -802,7 +802,7 @@ bool StringConstant::VisitCallExpr(CallExpr const * expr) { case 2: { // b.append("foo", 3) -> b.append("foo"): - auto file = getFileNameOfSpellingLoc( + auto file = getFilenameOfLocation( compiler.getSourceManager().getSpellingLoc( compat::getBeginLoc(expr))); if (loplugin::isSamePathname( @@ -1169,7 +1169,7 @@ bool StringConstant::VisitCXXConstructExpr(CXXConstructExpr const * expr) { if (dc.Operator(OO_Plus).Namespace("rtl") .GlobalNamespace()) { - auto file = getFileNameOfSpellingLoc( + auto file = getFilenameOfLocation( compiler.getSourceManager() .getSpellingLoc( compat::getBeginLoc(expr))); |