Adapt pathname checks to mixed usage of \ and / on Windows
Change-Id: I91bc89a9076c6642e06b238f65f2d31a1d20c6b5
This commit is contained in:
@@ -98,8 +98,10 @@ bool StringConcat::VisitCallExpr(CallExpr const * expr) {
|
||||
StringRef name {
|
||||
compiler.getSourceManager().getFilename(
|
||||
compiler.getSourceManager().getSpellingLoc(expr->getLocStart())) };
|
||||
if (name == SRCDIR "/sal/qa/rtl/strings/test_ostring_concat.cxx"
|
||||
|| name == SRCDIR "/sal/qa/rtl/strings/test_oustring_concat.cxx")
|
||||
if (loplugin::isSamePathname(
|
||||
name, SRCDIR "/sal/qa/rtl/strings/test_ostring_concat.cxx")
|
||||
|| loplugin::isSamePathname(
|
||||
name, SRCDIR "/sal/qa/rtl/strings/test_oustring_concat.cxx"))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user