From e753fc97ec781a6ac87c39432d28f43c06f303d6 Mon Sep 17 00:00:00 2001 From: John Thompson Date: Thu, 3 Dec 2015 19:20:43 +0000 Subject: [PATCH] Fixed header determination logic. Was missing extensionless headers in coverage check. llvm-svn: 254635 --- clang-tools-extra/modularize/ModularizeUtilities.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")) -- 2.7.4