diff options
author | hlopko <hlopko@google.com> | 2017-07-27 14:40:15 +0200 |
---|---|---|
committer | Jakob Buchgraber <buchgr@google.com> | 2017-07-27 16:26:25 +0200 |
commit | c43cabff4046bf5805ffbf1c5fa6f286e67b9227 (patch) | |
tree | e07328151cc69d1305ec476cdf05a337b9f86660 /src/main/java/com/google/devtools/build | |
parent | e17f890d9f488698fb74576ab90f893bec129939 (diff) |
Add .ipp extension as a C++ header type
From one of the boost gurus:
If you want to split up your template sources into interface and implementation
(there are lots of good reasons to do that, including controlling
instantiation), you can't very well use the same name (foo.hpp) twice, and
foo.cpp wouldn't be appropriate for either one. foo.ipp clearly delineates the
file as an implementation file intended to be #included in foo.hpp.
RELNOTES: None.
PiperOrigin-RevId: 163329612
Diffstat (limited to 'src/main/java/com/google/devtools/build')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/cpp/CppFileTypes.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppFileTypes.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppFileTypes.java index ccb20727da..74152dfc6e 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppFileTypes.java +++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppFileTypes.java @@ -34,7 +34,8 @@ public final class CppFileTypes { public static final FileTypeSet LTO_SOURCE = FileTypeSet.of(CppFileTypes.CPP_SOURCE, CppFileTypes.C_SOURCE); - public static final FileType CPP_HEADER = FileType.of(".h", ".hh", ".hpp", ".hxx", ".inc"); + public static final FileType CPP_HEADER = + FileType.of(".h", ".hh", ".hpp", ".ipp", ".hxx", ".inc"); public static final FileType PCH = FileType.of(".pch"); public static final FileTypeSet OBJC_HEADER = FileTypeSet.of(CPP_HEADER, PCH); |