Home
last modified time | relevance | path

Searched refs:callable (Results 1 – 25 of 34) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DSTLFunctionalExtras.h41 Ret (*callback)(intptr_t callable, Params ...params) = nullptr;
42 intptr_t callable; variable
45 static Ret callback_fn(intptr_t callable, Params ...params) { in callback_fn() argument
46 return (*reinterpret_cast<Callable*>(callable))( in callback_fn()
56 Callable &&callable LLVM_LIFETIME_BOUND,
66 callable(reinterpret_cast<intptr_t>(&callable)) {} in callback()
69 return callback(callable, std::forward<Params>(params)...); in operator()
75 return callable == Other.callable;
/freebsd/contrib/llvm-project/libc/src/__support/CPP/
H A Dfunctional.h33 Ret (*callback)(intptr_t callable, Params... params) = nullptr;
34 intptr_t callable; variable
37 LIBC_INLINE static Ret callback_fn(intptr_t callable, Params... params) { in callback_fn() argument
38 return (*reinterpret_cast<Callable *>(callable))( in callback_fn()
49 Callable &&callable,
59 callable(reinterpret_cast<intptr_t>(&callable)) {} in callback()
62 return callback(callable, cpp::forward<Params>(params)...); in operator()
/freebsd/contrib/llvm-project/lldb/bindings/python/
H A Dpython-typemaps.swig435 PyErr_SetString(PyExc_TypeError, "Need a callable object or None!");
459 PyErr_SetString(PyExc_TypeError, "Need a callable object or None!");
483 PyErr_SetString(PyExc_TypeError, "Need a callable object or None!");
501 PyErr_SetString(PyExc_TypeError, "Need a callable object or None!");
690 PyErr_SetString(PyExc_TypeError, "Need a callable object or None!");
698 PythonCallable callable = Retain<PythonCallable>($input);
699 if (!callable.IsValid()) {
700 PyErr_SetString(PyExc_TypeError, "Need a valid callable object");
704 llvm::Expected<PythonCallable::ArgInfo> arg_info = callable.GetArgInfo();
713 PyErr_SetString(PyExc_TypeError, "Expected 3 argument callable object");
[all …]
H A Dpython-wrapper.swig1045 PythonCallable callable =
1048 if (!callable.IsValid())
1051 PythonObject callback_result = callable(result_arg);
1104 PythonCallable callable =
1106 if (!callable.IsValid()) {
1107 return SBError("The callback callable is not valid.");
1110 PythonObject result = callable(module_spec_arg, module_file_spec_arg,
H A Dpython-extensions.swig275 def callable(function):
283 return callable
/freebsd/contrib/llvm-project/libcxx/modules/std/
H A Dconcepts.cppm
H A Diterator.cppm
/freebsd/contrib/googletest/docs/reference/
H A Dactions.md39 In the following, by "callable" we mean a free function, `std::function`,
44 | `f` | Invoke `f` with the arguments passed to the mock function, where `f` is a callable. |
54 When defining a callable to be used with `Invoke*()`, you can declare any unused
H A Dtesting.md190 provide a callable that does the conversion. The callable accepts an object of
192 generated type can often be deduced by the compiler from the callable's call
212 The callable may be anything that can be used to initialize a `std::function`
213 with the appropriate call signature. Note the callable's return object gets
1470 The `factory` argument is a factory callable (move-constructible) object or
1472 ownership to the caller. The signature of the callable is `Fixture*()`, where
/freebsd/contrib/llvm-project/libcxx/include/
H A Dconcepts104 // [concepts.callable], callable concepts
H A D__config1087 // OP - type of the callable object with the reduction operation
/freebsd/contrib/googletest/googlemock/include/gmock/
H A Dgmock-actions.h462 OnceAction(Callable&& callable) // NOLINT
464 {}, std::forward<Callable>(callable))) {}
481 OnceAction(Callable&& callable) // NOLINT
485 std::forward<Callable>(callable)}) {}
516 explicit StdFunctionAdaptor(CallableTag, F&& callable)
517 : callable_(std::make_shared<Callable>(std::forward<F>(callable))) {}
554 return std::move(callable)();
557 Callable callable;
H A Dgmock-more-actions.h610 auto &&callable = std::move(args_tuple.template Get<index>());
612 std::forward<decltype(callable)>(callable), unpacked_params...);
H A Dgmock-matchers.h2278 ResultOfMatcher(Callable callable, InnerMatcher matcher)
2279 : ResultOfMatcher(/*result_description=*/"", std::move(callable),
2282 ResultOfMatcher(const std::string& result_description, Callable callable,
2285 callable_(std::move(callable)),
2310 const CallableStorageType& callable, const M& matcher)
2312 callable_(callable),
4721 Callable callable, InnerMatcher matcher) {
4722 return internal::ResultOfMatcher<Callable, InnerMatcher>(std::move(callable),
4730 const std::string& result_description, Callable callable,
4733 result_description, std::move(callable), std::move(matcher));
/freebsd/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/
H A DScriptedPythonInterface.h84 PythonCallable callable = callable_or_err->AsType<PythonCallable>(); in CheckAbstractMethodImplementation() local
85 if (!callable) in CheckAbstractMethodImplementation()
92 auto arg_info_or_err = callable.GetArgInfo(); in CheckAbstractMethodImplementation()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILOpBuilder.cpp353 return ShaderKind::callable; in getShaderKindEnum()
H A DDXIL.td270 def callable : DXILShaderStage;
/freebsd/sys/contrib/openzfs/contrib/pyzfs/libzfs_core/
H A D_libzfs_core.py1620 if not callable(func):
/freebsd/contrib/llvm-project/openmp/runtime/src/
H A Ddllexports613 # for user-callable uppercase Fortran entries.
/freebsd/contrib/googletest/docs/
H A Dgmock_cook_book.md2186 If the built-in actions don't suit you, you can use an existing callable
2289 There are two solutions to this problem. First, you can pass any callable of
2337 words, a "callable") as an argument, e.g.
2347 and you may want to invoke this callable argument:
2387 What if the callable takes an argument by reference? No problem - just wrap it
2408 What if the callable takes an argument by reference and we do **not** wrap the
2411 original value, to the callable. This is especially handy when the argument is a
2809 remember that you can always use a lambda or a callable object, which can do
3910 It's also fine for the callable to take no arguments, ignoring the arguments
3919 When used with `WillOnce`, the callable can assume it will be called at most
H A Dadvanced.md1610 The `factory` argument is a factory callable (move-constructible) object or
1612 ownership to the caller. The signature of the callable is `Fixture*()`, where
/freebsd/contrib/mandoc/
H A DTODO165 - .Sh and .Ss should be parsed and partially callable, see groff_mdoc(7)
714 - warn about attempts to call non-callable macros
/freebsd/contrib/llvm-project/clang/include/clang/CIR/Dialect/IR/
H A DCIROps.td1958 /// Returns the region on the current operation that is callable. This may
1959 /// return null in the case of an external callable object, e.g. an external
1963 /// Returns the results types that the callable region produces when
/freebsd/contrib/llvm-project/libcxx/include/__cxx03/
H A D__config941 // OP - type of the callable object with the reduction operation
/freebsd/contrib/bsnmp/tests/
H A Dcatch.hpp6645 struct callable { struct
6647 virtual callable* clone() const = 0;
6648 virtual ~callable() = default;
6651 struct model : public callable {
6703 std::unique_ptr<callable> f;

12