Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1917)

Unified Diff: tools/gn/source_file_type.cc

Issue 1933323002: GN: Add common header extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698