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

Function NewCompilerBuilder

compiler/compiler_factory.h:58–66  ·  view source on GitHub ↗

Convenience overload for non-owning pointers (such as the generated pool). The descriptor pool must outlive the compiler builder and any compiler instances it builds.

Source from the content-addressed store, hash-verified

56// The descriptor pool must outlive the compiler builder and any compiler
57// instances it builds.
58inline absl::StatusOr<std::unique_ptr<CompilerBuilder>> NewCompilerBuilder(
59 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
60 CompilerOptions options = {}) {
61 return NewCompilerBuilder(
62 std::shared_ptr<const google::protobuf::DescriptorPool>(
63 descriptor_pool,
64 internal::NoopDeleteFor<const google::protobuf::DescriptorPool>()),
65 std::move(options));
66}
67
68} // namespace cel
69

Callers 15

TEST_PFunction · 0.70
TESTFunction · 0.70
TESTFunction · 0.70
TESTFunction · 0.50
CreateCompilerFunction · 0.50
StdLibCompilerFunction · 0.50
NewCompilerBuilderMethod · 0.50
NewCompilerMethod · 0.50
SetUpMethod · 0.50
TEST_PFunction · 0.50
SetUpMethod · 0.50

Calls

no outgoing calls

Tested by 15

TEST_PFunction · 0.56
TESTFunction · 0.56
TESTFunction · 0.56
TESTFunction · 0.40
CreateCompilerFunction · 0.40
StdLibCompilerFunction · 0.40
SetUpMethod · 0.40
TEST_PFunction · 0.40
SetUpMethod · 0.40
TEST_PFunction · 0.40
SetUpMethod · 0.40