Skip to content

Commit

Permalink
C++: Adds source extension for match_clif.bzl
Browse files Browse the repository at this point in the history
  • Loading branch information
oquenchil authored and copybara-github committed Aug 1, 2019
1 parent 06c420d commit 574153b
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,16 @@ public final class CppFileTypes {
public static final FileType C_SOURCE = FileType.of(".c");
public static final FileType OBJC_SOURCE = FileType.of(".m");
public static final FileType OBJCPP_SOURCE = FileType.of(".mm");
public static final FileType CLIF_INPUT_PROTO = FileType.of(".ipb");
public static final FileType CLIF_OUTPUT_PROTO = FileType.of(".opb");

public static final FileTypeSet ALL_C_CLASS_SOURCE =
FileTypeSet.of(
CppFileTypes.CPP_SOURCE,
CppFileTypes.C_SOURCE,
CppFileTypes.OBJCPP_SOURCE,
CppFileTypes.OBJC_SOURCE);
CppFileTypes.OBJC_SOURCE,
CppFileTypes.CLIF_INPUT_PROTO);

// Filetypes that generate LLVM bitcode when -flto is specified.
public static final FileTypeSet LTO_SOURCE =
Expand Down Expand Up @@ -196,9 +200,6 @@ public boolean apply(String path) {
public static final FileType CPP_MODULE_MAP = FileType.of(".cppmap");
public static final FileType CPP_MODULE = FileType.of(".pcm");

public static final FileType CLIF_INPUT_PROTO = FileType.of(".ipb");
public static final FileType CLIF_OUTPUT_PROTO = FileType.of(".opb");

/** Predicate that matches all artifacts that can be used in an objc Clang module map. */
public static final Predicate<Artifact> MODULE_MAP_HEADER =
artifact -> {
Expand Down

0 comments on commit 574153b

Please sign in to comment.