Home
last modified time | relevance | path

Searched refs:Callable (Results 1 – 25 of 85) sorted by relevance

1234

/llvm-project/clang-tools-extra/clang-tidy/modernize/
H A DAvoidBindCheck.cpp103 CallableInfo Callable; member
256 const CallableInfo &Callable) { in buildBindArguments() argument
270 if (Callable.Type == CT_MemberFunction) in buildBindArguments()
273 bool IsObjectPtr = (I == 1 && Callable.Type == CT_MemberFunction); in buildBindArguments()
277 if (!Callable.Decl || ArgIndex < Callable.Decl->getNumParams() || in buildBindArguments()
459 const FunctionDecl *getCallOperator(const CXXRecordDecl *Callable, in getCallOperator() argument
462 findCandidateCallOperators(Callable, NumArgs); in getCallOperator()
554 LP.Callable.Type = getCallableType(Result); in getLambdaProperties()
555 LP.Callable.Materialization = getCallableMaterialization(Result); in getLambdaProperties()
556 LP.Callable.Decl = in getLambdaProperties()
[all …]
/llvm-project/clang/test/Analysis/
H A Dcxx-uninitialized-object.cpp748 template <class Callable>
750 Callable functor;
752 LambdaThisTest(const Callable &functor, int) : functor(functor) { in LambdaThisTest()
764 template <class Callable>
766 Callable functor;
768 LambdaTest1(const Callable &functor, int) : functor(functor) { in LambdaTest1()
779 template <class Callable>
781 Callable functor;
783 …LambdaTest2(const Callable &functor, int) : functor(functor) {} // expected-warning{{1 uninitializ… in LambdaTest2()
792 template <class Callable>
[all …]
H A Dmalloc-bodyfarms.cpp8 template <class Callable, class... Args>
9 void call_once(once_flag &o, Callable&& func, Args&&... args);
H A Dcall_once.cpp43 template <class Callable, class... Args>
44 void call_once(once_flag &o, Callable&& func, Args&&... args) {}; in call_once()
46 template <class Callable, class... Args> // libcxx03 call_once
47 void call_once(once_flag &o, Callable func, Args&&... args) {}; in call_once()
/llvm-project/llvm/include/llvm/ADT/
H A DScopeExit.h26 template <typename Callable> class scope_exit {
27 Callable ExitFunction;
57 template <typename Callable>
58 [[nodiscard]] detail::scope_exit<std::decay_t<Callable>>
59 make_scope_exit(Callable &&F) { in make_scope_exit()
60 return detail::scope_exit<std::decay_t<Callable>>(std::forward<Callable>(F)); in make_scope_exit()
H A DSTLFunctionalExtras.h44 template<typename Callable> in callback_fn()
46 return (*reinterpret_cast<Callable*>(callable))( in callback_fn()
54 template <typename Callable>
56 Callable &&callable LLVM_LIFETIME_BOUND,
58 std::enable_if_t<!std::is_same<remove_cvref_t<Callable>,
62 std::is_convertible<decltype(std::declval<Callable>()(
65 : callback(callback_fn<std::remove_reference_t<Callable>>), in callback()
64 callback(callback_fn<std::remove_reference_t<Callable>>) callback() argument
H A DFunctionExtras.h263 UniqueFunctionBase(CallableT Callable, CalledAs<CalledAsT>) {
278 new (CallableAddr) CallableT(std::move(Callable));
380 CallableT Callable,
383 : Base(std::forward<CallableT>(Callable),
406 CallableT Callable,
409 : Base(std::forward<CallableT>(Callable),
/llvm-project/libc/src/__support/CPP/
H A Dfunctional.h36 template <typename Callable> in callback_fn()
38 return (*reinterpret_cast<Callable *>(callable))( in callback_fn()
47 template <typename Callable>
49 Callable &&callable,
51 enable_if_t<!cpp::is_same_v<remove_cvref_t<Callable>, function>> * =
56 decltype(declval<Callable>()(declval<Params>()...)), Ret>>
58 : callback(callback_fn<cpp::remove_reference_t<Callable>>), in callback()
57 callback(callback_fn<cpp::remove_reference_t<Callable>>) callback() argument
/llvm-project/llvm/unittests/ADT/
H A DScopeExitTest.cpp17 struct Callable { in TEST() struct
19 Callable(bool &Called) : Called(Called) {} in TEST() function
20 Callable(Callable &&RHS) : Called(RHS.Called) {} in TEST() function
25 auto g = make_scope_exit(Callable(Called)); in TEST()
/llvm-project/clang/test/CXX/basic/basic.lookup/basic.lookup.argdep/
H A Dp4.cpp154 struct Callable { void operator()(S); }; struct
155 static struct Callable Callable; variable
160 Callable(s); // expected-error {{use of undeclared}} in test()
/llvm-project/libc/test/UnitTest/
H A DFPExceptMatcher.h34 struct Callable : public FunctionCaller { in getFunctionCaller() argument
36 explicit Callable(Func theFunc) : f(theFunc) {} in getFunctionCaller() argument
40 return new Callable(func); in getFunctionCaller()
33 struct Callable : public FunctionCaller { getFunctionCaller() struct
35 CallablegetFunctionCaller::Callable getFunctionCaller() argument
/llvm-project/libcxx/test/std/algorithms/alg.nonmodifying/alg.foreach/
H A Dranges.for_each.pass.cpp28 struct Callable { struct
33 concept HasForEachIt = requires (Iter iter, Sent sent) { std::ranges::for_each(iter, sent, Callable
45 static_assert(HasForEachItFunc<Callable>);
50 concept HasForEachR = requires (Range range) { std::ranges::for_each(range, Callable{}); };
62 static_assert(HasForEachRFunc<Callable>);
H A Dranges.for_each_n.pass.cpp25 struct Callable { struct
30 concept HasForEachN = requires (Iter iter) { std::ranges::for_each_n(iter, 0, Callable{}); };
40 static_assert(HasForEachItFunc<Callable>);
/llvm-project/third-party/unittest/googlemock/include/gmock/
H A Dgmock-actions.h421 template <typename Callable>
424 std::is_constructible<typename std::decay<Callable>::type, Callable>,
426 internal::is_callable_r<Result, typename std::decay<Callable>::type,
431 template <typename Callable>
434 std::is_constructible<typename std::decay<Callable>::type, Callable>,
437 internal::is_callable_r<Result, typename std::decay<Callable>::type>>;
443 template <typename Callable,
451 OnceAction, typename std::decay<Callable>::type>>,
452 IsDirectlyCompatible<Callable>> //
455 OnceAction(Callable&& callable) // NOLINT
[all …]
/llvm-project/llvm/tools/llvm-xray/
H A Dtrie-node.h47 template <typename T, typename Callable>
53 Callable &&MergeCallable) { in mergeTrieNodes()
55 std::forward<Callable>(MergeCallable)); in mergeTrieNodes()
/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DJITSymbol.cpp34 Flags |= JITSymbolFlags::Callable; in fromGlobalValue()
37 Flags |= JITSymbolFlags::Callable; in fromGlobalValue()
63 Flags |= JITSymbolFlags::Callable; in fromSummary()
88 Flags |= JITSymbolFlags::Callable; in fromObjectSymbol()
/llvm-project/mlir/utils/mbr/mbr/
H A D__init__.py13 runner: typing.Callable
14 compiler: typing.Optional[typing.Callable] = None
/llvm-project/clang/test/Sema/
H A Dstmt-expr-in-default-arg.cpp19 template <typename Callable>
20 int bar(Callable &&Call) { in bar()
/llvm-project/clang/test/Analysis/html_diagnostics/relevant_lines/
H A Dsynthesized_body.cpp7 template <class Callable, class... Args>
8 void call_once(once_flag &o, Callable&& func, Args&&... args);
/llvm-project/libcxx/test/std/thread/futures/futures.task/futures.task.members/
H A Dctad.compile.pass.cpp24 struct Callable { struct
27 static_assert(std::is_same_v<decltype(std::packaged_task{Callable<true>{}}), std::packaged_task<int…
28 static_assert(std::is_same_v<decltype(std::packaged_task{Callable<false>{}}), std::packaged_task<in…
/llvm-project/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/
H A Drobust_against_adl.pass.cpp34 struct Callable { struct
51 std::function<void()> i(Callable<Holder<Incomplete>>{}); in main() argument
/llvm-project/mlir/test/python/dialects/
H A Dtransform_extras.py3 from typing import Callable
36 def build_transform_script(script: Callable[[OpHandle], None]):
45 def build_transform_script_at_insertion_point(script: Callable[[OpHandle], None]):
/llvm-project/llvm/lib/Analysis/models/
H A Dinteractive_host.py20 from typing import Callable, List, Union
37 make_response: Callable[[List[log_reader.TensorValue]], Union[int, float]],
/llvm-project/llvm/examples/OrcV2Examples/LLJITWithLazyReexports/
H A DLLJITWithLazyReexports.cpp137 JITSymbolFlags::Exported | JITSymbolFlags::Callable}}, in main()
140 JITSymbolFlags::Exported | JITSymbolFlags::Callable}}}); in main()
/llvm-project/clang/test/SemaCXX/
H A Dcoro-return-type-and-wrapper.cpp98 class Callable { class in std_function::std::function
103 Callable* callable_;

1234