Adapt pathname checks to mixed usage of \ and / on Windows
Change-Id: I91bc89a9076c6642e06b238f65f2d31a1d20c6b5
This commit is contained in:
@@ -230,8 +230,9 @@ bool Nullptr::TraverseLinkageSpecDecl(LinkageSpecDecl * decl) {
|
||||
}
|
||||
|
||||
bool Nullptr::isInLokIncludeFile(SourceLocation spellingLocation) const {
|
||||
return compiler.getSourceManager().getFilename(spellingLocation)
|
||||
.startswith(SRCDIR "/include/LibreOfficeKit/");
|
||||
return loplugin::hasPathnamePrefix(
|
||||
compiler.getSourceManager().getFilename(spellingLocation),
|
||||
SRCDIR "/include/LibreOfficeKit/");
|
||||
}
|
||||
|
||||
bool Nullptr::isFromCIncludeFile(SourceLocation spellingLocation) const {
|
||||
|
Reference in New Issue
Block a user