MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / IncludeMacrosByNamePredicate

Function IncludeMacrosByNamePredicate

parser/parser_subset_factory.cc:28–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26namespace cel {
27
28cel::ParserLibrarySubset::MacroPredicate IncludeMacrosByNamePredicate(
29 absl::flat_hash_set<std::string> macro_names) {
30 return [macro_names_set = std::move(macro_names)](const Macro& macro) {
31 return macro_names_set.contains(macro.function());
32 };
33}
34
35cel::ParserLibrarySubset::MacroPredicate IncludeMacrosByNamePredicate(
36 absl::Span<const absl::string_view> macro_names) {

Callers 1

MakeStdlibSubsetFunction · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected