Home
last modified time | relevance | path

Searched refs:CanCopy (Results 1 – 9 of 9) sorted by relevance

/llvm-project-15.0.7/libcxx/test/std/utilities/utility/pairs/pairs.pair/
H A Dspecial_member_generation_test.pass.cpp34 template <class T1, bool CanCopy = true, bool CanMove = CanCopy> void test() { in test()
37 static_assert(std::is_copy_constructible<P1>::value == CanCopy, ""); in test()
39 static_assert(std::is_copy_constructible<P2>::value == CanCopy, ""); in test()
82 template <class T1, bool CanCopy = true, bool CanMove = CanCopy> void test() { in test()
85 static_assert(std::is_copy_assignable<P1>::value == CanCopy, ""); in test()
87 static_assert(std::is_copy_assignable<P2>::value == CanCopy, ""); in test()
H A Dconst_first_const_second.pass.cpp39 bool CanCopy = true, bool CanConvert = CanCopy>
45 static_assert(std::is_constructible<P1, T1Arg, T2>::value == CanCopy, ""); in test_sfinae()
47 static_assert(std::is_constructible<P2, T2, T1Arg>::value == CanCopy, ""); in test_sfinae()
H A DU_V.pass.cpp28 bool CanCopy = true, bool CanConvert = CanCopy>
33 static_assert(std::is_constructible<P1, T1Arg, T2>::value == CanCopy, ""); in test_sfinae()
35 static_assert(std::is_constructible<P2, T2, T1Arg>::value == CanCopy, ""); in test_sfinae()
H A Dconst_pair_U_V.pass.cpp26 template <class T1, class U1, bool CanCopy = true, bool CanConvert = CanCopy>
32 static_assert(std::is_constructible<P1, UP1>::value == CanCopy, ""); in test_pair_const()
34 static_assert(std::is_constructible<P2, UP2>::value == CanCopy, ""); in test_pair_const()
H A Drv_pair_U_V.pass.cpp28 bool CanCopy = true, bool CanConvert = CanCopy>
35 static_assert(std::is_constructible<P1, UP1>::value == CanCopy, ""); in test_pair_rv()
37 static_assert(std::is_constructible<P2, UP2>::value == CanCopy, ""); in test_pair_rv()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DMemberwiseConstructor.cpp185 bool CanCopy = C.hasUserDeclaredCopyConstructor() || in considerClassValue() local
197 CanCopy = CanCopy && IsUsable; in considerClassValue()
205 CanCopy, CanMove, C.isTriviallyCopyable()); in considerClassValue()
206 if (CanCopy && C.isTriviallyCopyable()) in considerClassValue()
210 if (CanCopy) in considerClassValue()
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DSTLExtrasTest.cpp135 template <bool B> struct CanCopy {}; struct
136 template <> struct CanCopy<false> { struct
137 CanCopy(const CanCopy &) = delete;
139 CanCopy() = default;
140 CanCopy(CanCopy &&) = default;
144 class Counted : CanMove<Moveable>, CanCopy<Copyable> {
151 Counted(const Counted &O) : CanCopy<Copyable>(O), C(O.C), M(O.M), D(O.D) { in Counted()
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DCSEMIRBuilder.cpp276 bool CanCopy = checkCopyToDefsPossible(DstOps); in buildInstr() local
281 if (!CanCopy) { in buildInstr()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DLoopConvertCheck.cpp543 bool CanCopy = true; in doConversion() local
611 CanCopy = false; in doConversion()
643 bool UseCopy = CanCopy && ((VarNameFromAlias && !AliasVarIsRef) || in doConversion()