Skip to content

Commit

Permalink
Add .h++ extension for header files
Browse files Browse the repository at this point in the history
This fixes bazelbuild#8111 (which I just opened).

Let me know if changes are needed. I have essentially followed what I saw in 77ac48e (which fixes bazelbuild#302 which is a similar issue affecting source files with `.c++` extension).

Closes bazelbuild#8112.

PiperOrigin-RevId: 253532672
  • Loading branch information
macbutch authored and irengrig committed Jul 15, 2019
1 parent f69fe6e commit d36d245
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ public final class CppFileTypes {
FileTypeSet.of(CppFileTypes.CPP_SOURCE, CppFileTypes.C_SOURCE);

public static final FileType CPP_HEADER =
FileType.of(".h", ".hh", ".hpp", ".ipp", ".hxx", ".inc", ".inl", ".tlh", ".tli", ".H");
FileType.of(
".h", ".hh", ".hpp", ".ipp", ".hxx", ".h++", ".inc", ".inl", ".tlh", ".tli", ".H");
public static final FileType PCH = FileType.of(".pch");
public static final FileTypeSet OBJC_HEADER = FileTypeSet.of(CPP_HEADER, PCH);

Expand Down

0 comments on commit d36d245

Please sign in to comment.