summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/modularize/CoverageChecker.cpp
diff options
context:
space:
mode:
authorJohn Thompson <John.Thompson.JTSoftware@gmail.com>2015-12-10 01:33:09 +0000
committerJohn Thompson <John.Thompson.JTSoftware@gmail.com>2015-12-10 01:33:09 +0000
commit442f1b2795b7dd88d89ac5b3d688ba1a9f34e9e0 (patch)
tree5abe090e6b4b03bb05e3f7370b7a36d1d40e5cf6 /clang-tools-extra/modularize/CoverageChecker.cpp
parentefb116fba6a88c42fc6d7e4449557700747f8da7 (diff)
downloadbcm5719-llvm-442f1b2795b7dd88d89ac5b3d688ba1a9f34e9e0.tar.gz
bcm5719-llvm-442f1b2795b7dd88d89ac5b3d688ba1a9f34e9e0.zip
There were problems if a relative path is used for an include path, the path will be normalized to ./xxx. I don't know how to test this in a way that will work in a separated source/output environment, but it seems reasonable to assume that -I options won't be for provate directories.
llvm-svn: 255199
Diffstat (limited to 'clang-tools-extra/modularize/CoverageChecker.cpp')
-rw-r--r--clang-tools-extra/modularize/CoverageChecker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/modularize/CoverageChecker.cpp b/clang-tools-extra/modularize/CoverageChecker.cpp
index 8549c0d4a6e..b3aa3c9b79e 100644
--- a/clang-tools-extra/modularize/CoverageChecker.cpp
+++ b/clang-tools-extra/modularize/CoverageChecker.cpp
@@ -379,8 +379,8 @@ bool CoverageChecker::collectFileSystemHeaders(StringRef IncludePath) {
continue;
// Assume directories or files starting with '.' are private and not to
// be considered.
- if (file.startswith(".") || (file.find("\\.") != StringRef::npos)
- || (file.find("/.") != StringRef::npos))
+ if ((file.find("\\.") != StringRef::npos) ||
+ (file.find("/.") != StringRef::npos))
continue;
// If the file does not have a common header extension, ignore it.
if (!ModularizeUtilities::isHeader(file))
OpenPOWER on IntegriCloud