diff options
author | 2015-07-22 11:54:10 +0000 | |
---|---|---|
committer | 2015-07-23 10:59:53 +0000 | |
commit | 77ac48e2d0874d152c29b597113053f2629b3bc3 (patch) | |
tree | c815be05081d4347bd5a0e6b104f15a7b48ddb81 /src/main/java/com/google/devtools | |
parent | 2f2f911d11be96dc6398a3096e6b3c4fdb12fc3f (diff) |
Allow C++ files to have the .c++ extension
While somewhat uncommon, some build environments and projects use the
.c++ extension for C++ source files. These projects should be buildable
by an unmodified Bazel with no changes to the project other than
adding a BUILD file.
--
Change-Id: I71575842f50725e9068e7f6608f6404b293ad45c
Reviewed-on: https://bazel-review.googlesource.com/#/c/1670/
MOS_MIGRATED_REVID=98823432
Diffstat (limited to 'src/main/java/com/google/devtools')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/cpp/CppFileTypes.java | 2 |
1 files changed, 1 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 0d19b9ab42..7e79dcbf8f 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 @@ -23,7 +23,7 @@ import java.util.regex.Pattern; * C++-related file type definitions. */ public final class CppFileTypes { - public static final FileType CPP_SOURCE = FileType.of(".cc", ".cpp", ".cxx", ".C"); + public static final FileType CPP_SOURCE = FileType.of(".cc", ".cpp", ".cxx", ".c++", ".C"); public static final FileType C_SOURCE = FileType.of(".c"); public static final FileType CPP_HEADER = FileType.of(".h", ".hh", ".hpp", ".hxx", ".inc"); public static final FileType CPP_TEXTUAL_INCLUDE = FileType.of(".inc"); |