diff options
author | John Thompson <John.Thompson.JTSoftware@gmail.com> | 2015-12-10 01:33:09 +0000 |
---|---|---|
committer | John Thompson <John.Thompson.JTSoftware@gmail.com> | 2015-12-10 01:33:09 +0000 |
commit | a59a957ea22e0932a475fc759cfa4b4e26dca9cf (patch) | |
tree | b1d8143e6a6848a8dfab119cc296d2372117c592 /modularize | |
parent | 5fe746893319451280afee51ba29cd82c0a98e72 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@255199 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'modularize')
-rw-r--r-- | modularize/CoverageChecker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modularize/CoverageChecker.cpp b/modularize/CoverageChecker.cpp index 8549c0d4..b3aa3c9b 100644 --- a/modularize/CoverageChecker.cpp +++ b/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)) |