| /llvm-project-15.0.7/libcxx/test/std/utilities/function.objects/func.invoke/ |
| H A D | invoke_constexpr.pass.cpp | 83 template <class Signature, class Expect, class Functor> 84 constexpr void test_b12(Functor&& f) { in test_b12() 109 template <class Expect, class Functor> 110 constexpr void test_b34(Functor&& f) { in test_b34() 117 std::invoke(func_ptr, std::forward<Functor>(f)) in test_b34() 122 typedef typename std::result_of<ClassFunc&&(Functor&&)>::type in test_b34() 128 std::invoke(func_ptr, std::forward<Functor>(f)); in test_b34() 132 template <class Expect, class Functor> 133 constexpr void test_b5(Functor&& f) { in test_b5() 138 std::invoke(std::forward<Functor>(f), std::move(arg)) in test_b5() [all …]
|
| H A D | invoke.pass.cpp | 86 template <class Signature, class Expect, class Functor> 87 void test_b12(Functor&& f) { in test_b12() 112 template <class Expect, class Functor> 113 void test_b34(Functor&& f) { in test_b34() 120 std::invoke(func_ptr, std::forward<Functor>(f)) in test_b34() 125 typedef typename std::result_of<ClassFunc&&(Functor&&)>::type in test_b34() 131 std::invoke(func_ptr, std::forward<Functor>(f)); in test_b34() 135 template <class Expect, class Functor> 136 void test_b5(Functor&& f) { in test_b5() 141 std::invoke(std::forward<Functor>(f), std::move(arg)) in test_b5() [all …]
|
| /llvm-project-15.0.7/flang/runtime/ |
| H A D | findloc.cpp | 128 template <int TARGET_KIND> struct Functor { struct 136 ApplyIntegerKind<LocationResultHelper<Accumulator>::template Functor, in operator ()() 146 template <int KIND> struct Functor { struct 159 HELPER<CAT, KIND, TypeCategory::Real>::template Functor, void>( in operator ()() 221 TotalNumericFindlocHelper>::template Functor, in RTNAME() 227 TotalNumericFindlocHelper>::template Functor, in RTNAME() 233 TotalNumericFindlocHelper>::template Functor, in RTNAME() 259 template <int TARGET_KIND> struct Functor { struct 266 ApplyIntegerKind<PartialLocationHelper<Accumulator>::template Functor, in operator ()() 279 ApplyIntegerKind<PartialLocationHelper<Accumulator>::template Functor, in operator ()() [all …]
|
| H A D | extrema.cpp | 111 ApplyIntegerKind<LocationResultHelper<ACCUMULATOR>::template Functor, void>( in LocationHelper() 132 template <int KIND> struct Functor { struct 168 TypedMaxOrMinLocHelper<TypeCategory::Real, IS_MAX>::template Functor, in TypedMaxOrMinLoc() 174 IS_MAX>::template Functor, in TypedMaxOrMinLoc() 227 template <int KIND> struct Functor { struct 263 NumericCompare>::template Functor, in TypedPartialMaxOrMinLoc() 269 IS_MAX, NumericCompare>::template Functor, in TypedPartialMaxOrMinLoc() 275 IS_MAX, CharacterCompare>::template Functor, in TypedPartialMaxOrMinLoc() 379 template <int KIND> struct Functor { struct 451 template <int KIND> struct Functor { struct [all …]
|
| H A D | reduction-templates.h | 232 template <int KIND> struct Functor { struct 252 PartialIntegerReductionHelper<INTEGER_ACCUM>::template Functor, void>( in PartialIntegerReduction() 258 template <int KIND> struct Functor { struct 288 REAL_ACCUM>::template Functor, in TypedPartialNumericReduction() 294 COMPLEX_ACCUM>::template Functor, in TypedPartialNumericReduction() 304 template <int KIND> struct Functor { struct 313 template <int KIND> struct Functor { struct
|
| H A D | reduction.cpp | 261 template <int KIND> struct Functor { struct 285 ApplyLogicalKind<LogicalReduceHelper<REDUCTION>::template Functor, void>( in DoReduceLogicalDimension()
|
| /llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.partitions/ |
| H A D | ranges.is_partitioned.pass.cpp | 28 struct Functor { struct 34 std::ranges::is_partitioned(iter, sent, Functor{}); 49 static_assert(HasIsPartitionedItPred<Functor>); 55 std::ranges::is_partitioned(range, Functor{}); 70 static_assert(HasIsPartitionedRPred<Functor>);
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-change-namespace/ |
| H A D | lambda-function.cpp | 8 template <typename Functor> 9 function(Functor f) {} in function()
|
| /llvm-project-15.0.7/libcxx/test/libcxx/type_traits/ |
| H A D | is_callable.compile.pass.cpp | 11 struct Functor { struct 25 static_assert(std::__is_callable<Functor>::value, "");
|
| /llvm-project-15.0.7/clang/test/Parser/ |
| H A D | objcxx14-protocol-in-template.mm | 8 template <typename Functor> void F(Functor functor) {}
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | typo-correction-cxx11.cpp | 30 auto Functor = [x]() {}; in f() local 31 long Alignment = __alignof__(Functor); in f()
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | microsoft-abi-member-pointers.cpp | 8 struct Functor { struct 16 class SimpleDerivedFunctor : public Functor<SimpleDerivedFunctor<SomeType>> {}; 27 : public Functor<DerivedFunctor<void>> { 45 : public Functor<MultiplyDerivedFunctor<void>>, 62 : public Functor<SomeType>,
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | edit_distance.h | 45 template <typename T, typename Functor> 47 Functor Map, bool AllowReplacements = true,
|
| /llvm-project-15.0.7/clang/test/SemaTemplate/ |
| H A D | member-function-template.cpp | 53 struct Functor { struct 60 void test_Functor(Functor f) { in test_Functor() argument
|
| H A D | instantiate-local-class.cpp | 83 struct Functor { in doIt() struct 88 forEach(Functor()); in doIt()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | UseTransparentFunctorsCheck.cpp | 88 const auto *Functor = Result.Nodes.getNodeAs<TemplateArgument>("Functor"); in check() local 106 Functor->getAsType()->getAsCXXRecordDecl()) in check()
|
| /llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/ |
| H A D | ranges.copy_if.pass.cpp | 33 struct Functor { struct 37 template <class In, class Out = In, class Sent = sentinel_wrapper<In>, class Func = Functor> 53 template <class Range, class Out, class Func = Functor>
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/performance/ |
| H A D | unnecessary-copy-initialization.cpp | 598 using Functor = std::function<int()>; typedef 601 Functor Orig; in negativeAliasedStdFunction() 602 Functor Copy = Orig; in negativeAliasedStdFunction()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | SimplifyBooleanExprCheck.cpp | 342 template <typename Functor> 343 static auto checkSingleStatement(Stmt *S, Functor F) -> decltype(F(S)) { in checkSingleStatement() 514 template <typename Functor> 515 static bool checkEitherSide(const BinaryOperator *BO, Functor Func) { in checkEitherSide()
|
| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | STLExtrasTest.cpp | 846 struct Functor : Counted<Moveable, Copyable> { struct 856 auto V = makeVisitor(Functor<true, false>(Copies, Moves, Destructors)); in TEST() 872 Functor<true, false> F(Copies, Moves, Destructors); in TEST() 894 Functor<true, true> F(Copies, Moves, Destructors); in TEST()
|
| /llvm-project-15.0.7/llvm/utils/unittest/googletest/src/ |
| H A D | gtest-internal-inl.h | 292 template <class Container, typename Functor> 293 void ForEach(const Container& c, Functor functor) { in ForEach()
|
| /llvm-project-15.0.7/llvm/tools/llvm-objcopy/ |
| H A D | ObjcopyOptions.cpp | 472 using Functor = std::function<void()>; in parseNewSymbolInfo() typedef 475 static_cast<Functor>( in parseNewSymbolInfo() 476 StringSwitch<Functor>(Flags[I]) in parseNewSymbolInfo()
|
| /llvm-project-15.0.7/libcxx/include/ |
| H A D | thread | 291 // _Fp = tuple< unique_ptr<__thread_struct>, Functor, Args...>
|
| /llvm-project-15.0.7/mlir/tools/mlir-tblgen/ |
| H A D | OpDefinitionsGen.cpp | 228 template <typename Functor> 229 Formatter(Functor &&func) : func(std::forward<Functor>(func)) {} in Formatter()
|
| /llvm-project-15.0.7/llvm/utils/unittest/googlemock/include/gmock/ |
| H A D | gmock-matchers.h | 1864 template <typename Functor> 1866 typedef Functor StorageType; 1868 static void CheckIsValid(Functor /* functor */) {} 1871 static auto Invoke(Functor f, const T& arg) -> decltype(f(arg)) {
|