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

Function MakeFunctionDecl

common/decl.h:388–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386
387template <typename... Overloads>
388absl::StatusOr<FunctionDecl> MakeFunctionDecl(std::string name,
389 Overloads&&... overloads) {
390 FunctionDecl function_decl;
391 function_decl.set_name(std::move(name));
392 function_decl.overloads_.Reserve(sizeof...(Overloads));
393 absl::Status status;
394 (function_decl.AddOverloadImpl(std::forward<Overloads>(overloads), status),
395 ...);
396 CEL_RETURN_IF_ERROR(status);
397 return function_decl;
398}
399
400namespace common_internal {
401

Callers 9

SubsetTestlibConfigurerFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
MakeIdentFunctionFunction · 0.85
RegisterSetsDeclsFunction · 0.85
CreateCompilerFunction · 0.85

Calls 3

AddOverloadImplMethod · 0.80
set_nameMethod · 0.45
ReserveMethod · 0.45

Tested by 7

SubsetTestlibConfigurerFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
MakeIdentFunctionFunction · 0.68
CreateCompilerFunction · 0.68