diff options
author | John Thompson <John.Thompson.JTSoftware@gmail.com> | 2015-12-03 19:20:43 +0000 |
---|---|---|
committer | John Thompson <John.Thompson.JTSoftware@gmail.com> | 2015-12-03 19:20:43 +0000 |
commit | e753fc97ec781a6ac87c39432d28f43c06f303d6 (patch) | |
tree | 4df9a950056b8a6f1ac111323f1d11d9051e9638 /clang-tools-extra/modularize | |
parent | da6e77f7180d56cd6b26e95afbb71c8ce4b4dc9d (diff) | |
download | llvm-e753fc97ec781a6ac87c39432d28f43c06f303d6.zip llvm-e753fc97ec781a6ac87c39432d28f43c06f303d6.tar.gz llvm-e753fc97ec781a6ac87c39432d28f43c06f303d6.tar.bz2 |
Fixed header determination logic. Was missing extensionless headers in coverage check.
llvm-svn: 254635
Diffstat (limited to 'clang-tools-extra/modularize')
-rw-r--r-- | clang-tools-extra/modularize/ModularizeUtilities.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/modularize/ModularizeUtilities.cpp b/clang-tools-extra/modularize/ModularizeUtilities.cpp index 08c92fc..1db6018 100644 --- a/clang-tools-extra/modularize/ModularizeUtilities.cpp +++ b/clang-tools-extra/modularize/ModularizeUtilities.cpp @@ -468,7 +468,7 @@ std::string ModularizeUtilities::getCanonicalPath(StringRef FilePath) { bool ModularizeUtilities::isHeader(StringRef FileName) { StringRef Extension = llvm::sys::path::extension(FileName); if (Extension.size() == 0) - return false; + return true; if (Extension.equals_lower(".h")) return true; if (Extension.equals_lower(".inc")) |