/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
H A D | AvoidBindCheck.cpp | 103 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 D | cxx-uninitialized-object.cpp | 748 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 D | malloc-bodyfarms.cpp | 8 template <class Callable, class... Args> 9 void call_once(once_flag &o, Callable&& func, Args&&... args);
|
H A D | call_once.cpp | 43 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 D | ScopeExit.h | 26 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 D | STLFunctionalExtras.h | 44 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 D | FunctionExtras.h | 263 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 D | functional.h | 36 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 D | ScopeExitTest.cpp | 17 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 D | p4.cpp | 154 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 D | FPExceptMatcher.h | 34 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 D | ranges.for_each.pass.cpp | 28 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 D | ranges.for_each_n.pass.cpp | 25 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 D | gmock-actions.h | 421 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 D | trie-node.h | 47 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 D | JITSymbol.cpp | 34 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__.py | 13 runner: typing.Callable 14 compiler: typing.Optional[typing.Callable] = None
|
/llvm-project/clang/test/Sema/ |
H A D | stmt-expr-in-default-arg.cpp | 19 template <typename Callable> 20 int bar(Callable &&Call) { in bar()
|
/llvm-project/clang/test/Analysis/html_diagnostics/relevant_lines/ |
H A D | synthesized_body.cpp | 7 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 D | ctad.compile.pass.cpp | 24 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 D | robust_against_adl.pass.cpp | 34 struct Callable { struct 51 std::function<void()> i(Callable<Holder<Incomplete>>{}); in main() argument
|
/llvm-project/mlir/test/python/dialects/ |
H A D | transform_extras.py | 3 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 D | interactive_host.py | 20 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 D | LLJITWithLazyReexports.cpp | 137 JITSymbolFlags::Exported | JITSymbolFlags::Callable}}, in main() 140 JITSymbolFlags::Exported | JITSymbolFlags::Callable}}}); in main()
|
/llvm-project/clang/test/SemaCXX/ |
H A D | coro-return-type-and-wrapper.cpp | 98 class Callable { class in std_function::std::function 103 Callable* callable_;
|