Searched refs:CanMove (Results 1 – 4 of 4) sorted by relevance
| /llvm-project-15.0.7/libcxx/test/std/utilities/utility/pairs/pairs.pair/ |
| H A D | special_member_generation_test.pass.cpp | 34 template <class T1, bool CanCopy = true, bool CanMove = CanCopy> void test() { in test() 38 static_assert(std::is_move_constructible<P1>::value == CanMove, ""); in test() 40 static_assert(std::is_move_constructible<P2>::value == CanMove, ""); in test() 82 template <class T1, bool CanCopy = true, bool CanMove = CanCopy> void test() { in test() 86 static_assert(std::is_move_assignable<P1>::value == CanMove, ""); in test() 88 static_assert(std::is_move_assignable<P2>::value == CanMove, ""); in test()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/ |
| H A D | MemberwiseConstructor.cpp | 188 bool CanMove = C.hasUserDeclaredMoveConstructor() || in considerClassValue() local 199 CanMove = CanMove && IsUsable; in considerClassValue() 205 CanCopy, CanMove, C.isTriviallyCopyable()); in considerClassValue() 208 if (CanMove) in considerClassValue()
|
| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | STLExtrasTest.cpp | 127 template <bool B> struct CanMove {}; struct 128 template <> struct CanMove<false> { struct 129 CanMove(CanMove &&) = delete; 131 CanMove() = default; 132 CanMove(const CanMove &) = default; 144 class Counted : CanMove<Moveable>, CanCopy<Copyable> { 155 : CanMove<Moveable>(std::move(O)), C(O.C), M(O.M), D(O.D) { in Counted()
|
| /llvm-project-15.0.7/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyRegStackify.cpp | 873 bool CanMove = SameBlock && isSafeToMove(Def, &Use, Insert, MFI, MRI) && in runOnMachineFunction() local 875 if (CanMove && hasOneUse(Reg, DefI, MRI, MDT, LIS)) { in runOnMachineFunction() 887 } else if (CanMove && oneUseDominatesOtherUses(Reg, Use, MBB, MRI, MDT, in runOnMachineFunction() 894 if (!CanMove && SameBlock) in runOnMachineFunction()
|