aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/InstallAPI/HeaderFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/InstallAPI/HeaderFile.cpp')
-rw-r--r--clang/lib/InstallAPI/HeaderFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/InstallAPI/HeaderFile.cpp b/clang/lib/InstallAPI/HeaderFile.cpp
index 0b7041e..d736a0a 100644
--- a/clang/lib/InstallAPI/HeaderFile.cpp
+++ b/clang/lib/InstallAPI/HeaderFile.cpp
@@ -38,7 +38,7 @@ std::optional<std::string> createIncludeHeaderName(const StringRef FullPath) {
bool isHeaderFile(StringRef Path) {
return StringSwitch<bool>(sys::path::extension(Path))
- .Cases(".h", ".H", ".hh", ".hpp", ".hxx", true)
+ .Cases({".h", ".H", ".hh", ".hpp", ".hxx"}, true)
.Default(false);
}