summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-10-01 10:18:03 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-10-01 13:32:00 +0200
commit6d9203b351cf4ef9fa05343f67633a0c633379a4 (patch)
tree3aec51c6379132138ec56d4e0edfa1274e408193 /compilerplugins
parent0b6bb036168590795b674fb3fdfb42ba5fdac271 (diff)
Use loplugin::isSamePathname (as needed on Windows)
Change-Id: I8a1df1c64a93dc3e4a6fb00afd11aaf8521ecea4 Reviewed-on: https://gerrit.libreoffice.org/79926 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/stringconcatauto.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/compilerplugins/clang/stringconcatauto.cxx b/compilerplugins/clang/stringconcatauto.cxx
index 7eac4965b3ee..0e708d4f6369 100644
--- a/compilerplugins/clang/stringconcatauto.cxx
+++ b/compilerplugins/clang/stringconcatauto.cxx
@@ -75,11 +75,11 @@ bool StringConcatAuto::checkDecl( const DeclaratorDecl* decl, QualType type, con
std::string fileName = getFileNameOfSpellingLoc(
compiler.getSourceManager().getSpellingLoc(compat::getBeginLoc(decl)));
loplugin::normalizeDotDotInFilePath(fileName);
- if (fileName == SRCDIR "/include/rtl/string.hxx"
- || fileName == SRCDIR "/include/rtl/ustring.hxx"
- || fileName == SRCDIR "/include/rtl/strbuf.hxx"
- || fileName == SRCDIR "/include/rtl/ustrbuf.hxx"
- || fileName == SRCDIR "/include/rtl/stringconcat.hxx")
+ if (loplugin::isSamePathname(fileName, SRCDIR "/include/rtl/string.hxx")
+ || loplugin::isSamePathname(fileName, SRCDIR "/include/rtl/ustring.hxx")
+ || loplugin::isSamePathname(fileName, SRCDIR "/include/rtl/strbuf.hxx")
+ || loplugin::isSamePathname(fileName, SRCDIR "/include/rtl/ustrbuf.hxx")
+ || loplugin::isSamePathname(fileName, SRCDIR "/include/rtl/stringconcat.hxx"))
return true;
auto const tc = loplugin::TypeCheck( type.getNonReferenceType().getCanonicalType());
const char* typeString = nullptr;