Index: tools/gn/source_file_type.cc |
diff --git a/tools/gn/source_file_type.cc b/tools/gn/source_file_type.cc |
index 72b872c5caed9bf933d62425e994c1dcdf5abbaa..328b2abbac3b1cba07eda41a503efa76141eeff0 100644 |
--- a/tools/gn/source_file_type.cc |
+++ b/tools/gn/source_file_type.cc |
@@ -11,7 +11,8 @@ SourceFileType GetSourceFileType(const SourceFile& file) { |
base::StringPiece extension = FindExtension(&file.value()); |
if (extension == "cc" || extension == "cpp" || extension == "cxx") |
return SOURCE_CPP; |
- if (extension == "h") |
+ if (extension == "h" || extension == "hpp" || extension == "hxx" || |
+ extension == "hh") |
return SOURCE_H; |
if (extension == "c") |
return SOURCE_C; |