summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/pluginhandler.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-03-26 13:37:06 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-03-27 08:20:47 +0200
commit449d416335802b23cf0f8f4725042f92138019cd (patch)
tree9c72f7efcc8c817a1e20c72180c08340e16aabc6 /compilerplugins/clang/pluginhandler.cxx
parentcbd1f3695f319c8aa4005d19e40a07c6b4dd116e (diff)
Let prefix arguments to hasPathnamePrefix end in slash
...for better precision Change-Id: I5f273b7c66ba931647805c415622b5ac767ff987
Diffstat (limited to 'compilerplugins/clang/pluginhandler.cxx')
-rw-r--r--compilerplugins/clang/pluginhandler.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/compilerplugins/clang/pluginhandler.cxx b/compilerplugins/clang/pluginhandler.cxx
index 3f169972f6a2..b1e789a4a8c5 100644
--- a/compilerplugins/clang/pluginhandler.cxx
+++ b/compilerplugins/clang/pluginhandler.cxx
@@ -207,7 +207,7 @@ bool PluginHandler::checkIgnoreLocation(SourceLocation loc)
// generated into the start of hash.cxx, #if'ed for __GNUC__, but
// for clang-cl it is an issue)
return true;
- if( hasPathnamePrefix(bufferName, WORKDIR) )
+ if( hasPathnamePrefix(bufferName, WORKDIR "/") )
{
// workdir/CustomTarget/vcl/unx/kde4/tst_exclude_socket_notifiers.moc
// includes
@@ -219,11 +219,11 @@ bool PluginHandler::checkIgnoreLocation(SourceLocation loc)
}
std::string s(bufferName);
normalizeDotDotInFilePath(s);
- if (hasPathnamePrefix(s, WORKDIR))
+ if (hasPathnamePrefix(s, WORKDIR "/"))
return true;
}
- if( hasPathnamePrefix(bufferName, BUILDDIR)
- || hasPathnamePrefix(bufferName, SRCDIR) )
+ if( hasPathnamePrefix(bufferName, BUILDDIR "/")
+ || hasPathnamePrefix(bufferName, SRCDIR "/") )
return false; // ok
return true;
}