diff options
Diffstat (limited to 'compilerplugins/clang/pluginhandler.cxx')
-rw-r--r-- | compilerplugins/clang/pluginhandler.cxx | 8 |
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; } |