summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/stringconcatliterals.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/stringconcatliterals.cxx')
-rw-r--r--compilerplugins/clang/stringconcatliterals.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/compilerplugins/clang/stringconcatliterals.cxx b/compilerplugins/clang/stringconcatliterals.cxx
index 2d2699a09acf..0f26f4f553bc 100644
--- a/compilerplugins/clang/stringconcatliterals.cxx
+++ b/compilerplugins/clang/stringconcatliterals.cxx
@@ -105,7 +105,7 @@ bool StringConcatLiterals::VisitCallExpr(CallExpr const * expr) {
// We add an extra " " in the TOOLS_WARN_EXCEPTION macro, which triggers this plugin
if (loplugin::isSamePathname(
- getFileNameOfSpellingLoc(
+ getFilenameOfLocation(
compiler.getSourceManager().getSpellingLoc(
compiler.getSourceManager().getImmediateMacroCallerLoc(
compiler.getSourceManager().getImmediateMacroCallerLoc(
@@ -114,7 +114,7 @@ bool StringConcatLiterals::VisitCallExpr(CallExpr const * expr) {
return true;
StringRef name {
- getFileNameOfSpellingLoc(
+ getFilenameOfLocation(
compiler.getSourceManager().getSpellingLoc(compat::getBeginLoc(expr))) };
if (loplugin::isSamePathname(
name, SRCDIR "/sal/qa/rtl/oustringbuffer/test_oustringbuffer_assign.cxx")