aboutsummaryrefslogtreecommitdiff
path: root/clang-tools-extra/modularize
diff options
context:
space:
mode:
authorJohn Thompson <John.Thompson.JTSoftware@gmail.com>2015-12-03 19:20:43 +0000
committerJohn Thompson <John.Thompson.JTSoftware@gmail.com>2015-12-03 19:20:43 +0000
commite753fc97ec781a6ac87c39432d28f43c06f303d6 (patch)
tree4df9a950056b8a6f1ac111323f1d11d9051e9638 /clang-tools-extra/modularize
parentda6e77f7180d56cd6b26e95afbb71c8ce4b4dc9d (diff)
downloadllvm-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.cpp2
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"))