Adapt pathname checks to mixed usage of \ and / on Windows
Change-Id: I91bc89a9076c6642e06b238f65f2d31a1d20c6b5
This commit is contained in:
@@ -70,7 +70,7 @@ bool FpComparison::ignore(FunctionDecl* function)
|
||||
}
|
||||
// we assume that these modules know what they are doing with FP stuff
|
||||
StringRef aFileName = compiler.getSourceManager().getFilename(compiler.getSourceManager().getSpellingLoc(function->getLocStart()));
|
||||
if (aFileName.startswith(SRCDIR "/sc/")) {
|
||||
if (loplugin::hasPathnamePrefix(aFileName, SRCDIR "/sc/")) {
|
||||
return true;
|
||||
}
|
||||
if (!function->doesThisDeclarationHaveABody()) {
|
||||
|
Reference in New Issue
Block a user