| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/performance/ |
| H A D | move-const-arg-const-ref.cpp | 7 struct remove_reference; 10 struct remove_reference { struct 15 struct remove_reference<_Tp &> { struct 20 struct remove_reference<_Tp &&> { struct 25 constexpr typename std::remove_reference<_Tp>::type &&move(_Tp &&__t) { in move() argument 26 return static_cast<typename std::remove_reference<_Tp>::type &&>(__t); in move() 31 forward(typename remove_reference<_Tp>::type &__t) noexcept { in forward()
|
| H A D | move-const-arg-trivially-copyable.cpp | 7 template <typename> struct remove_reference; 8 template <typename _Tp> struct remove_reference { typedef _Tp type; }; struct 9 template <typename _Tp> struct remove_reference<_Tp &> { typedef _Tp type; }; struct 10 template <typename _Tp> struct remove_reference<_Tp &&> { typedef _Tp type; }; struct 13 constexpr typename std::remove_reference<_Tp>::type &&move(_Tp &&__t) { in move() argument 14 return static_cast<typename std::remove_reference<_Tp>::type &&>(__t); in move() 19 forward(typename remove_reference<_Tp>::type &__t) noexcept { in forward()
|
| H A D | move-constructor-init.cpp | 10 template <class T> struct remove_reference {typedef T type;}; argument 11 template <class T> struct remove_reference<T&> {typedef T type;}; struct 12 template <class T> struct remove_reference<T&&> {typedef T type;}; argument 15 typename remove_reference<T>::type&& move(T&& arg) { in move() 16 return static_cast<typename remove_reference<T>::type&&>(arg); in move()
|
| H A D | move-const-arg.cpp | 5 struct remove_reference; 8 struct remove_reference { struct 13 struct remove_reference<_Tp &> { struct 18 struct remove_reference<_Tp &&> { struct 23 constexpr typename std::remove_reference<_Tp>::type &&move(_Tp &&__t) { in move() argument 24 return static_cast<typename std::remove_reference<_Tp>::type &&>(__t); in move() 29 forward(typename remove_reference<_Tp>::type &__t) noexcept { in forward()
|
| H A D | for-range-copy.cpp | 6 struct remove_reference { typedef _Tp type; }; struct 8 struct remove_reference<_Tp&> { typedef _Tp type; }; struct 10 struct remove_reference<_Tp&&> { typedef _Tp type; }; struct 13 constexpr typename std::remove_reference<_Tp>::type &&move(_Tp &&__t) { in move() argument 14 return static_cast<typename std::remove_reference<_Tp>::type &&>(__t); in move()
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | delayed-template-parsing-crash.cpp | 4 template <class T> struct remove_reference {typedef T type;}; struct 5 template <class T> struct remove_reference<T&> {typedef T type;}; struct 6 template <class T> struct remove_reference<T&&> {typedef T type;}; argument 9 typename remove_reference<T>::type&& move(T&& arg) { // this used to crash in move() 10 return static_cast<typename remove_reference<T>::type&&>(arg); in move()
|
| H A D | self-assign.cpp | 12 template<class T> struct remove_reference { typedef T type; }; argument 13 template<class T> struct remove_reference<T&> { typedef T type; }; struct 14 template<class T> struct remove_reference<T&&> { typedef T type; }; struct 15 template<class T> typename remove_reference<T>::type&& move(T&& t);
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | rval-references-examples.cpp | 28 struct remove_reference { struct 33 struct remove_reference<T&> { struct 38 struct remove_reference<T&&> { argument 43 template <class T> typename remove_reference<T>::type&& move(T&& t) { in move() argument 44 return static_cast<typename remove_reference<T>::type&&>(t); in move() 47 template <class T> T&& forward(typename remove_reference<T>::type& t) { in forward() 51 template <class T> T&& forward(typename remove_reference<T>::type&& t) { in forward()
|
| H A D | discrim-union.cpp | 3 template<typename T> struct remove_reference { typedef T type; }; struct 4 template<typename T> struct remove_reference<T&> { typedef T type; }; struct 5 template<typename T> struct remove_reference<T&&> { typedef T type; }; argument 7 template<typename T> constexpr T &&forward(typename remove_reference<T>::type &t) noexcept { return… in forward() 8 template<typename T> constexpr T &&forward(typename remove_reference<T>::type &&t) noexcept { retur… in forward() 9 …pename T> constexpr typename remove_reference<T>::type &&move(T &&t) noexcept { return static_cast… in move()
|
| H A D | warn-self-move.cpp | 6 template <class T> struct remove_reference { typedef T type; }; struct 7 template <class T> struct remove_reference<T&> { typedef T type; }; struct 8 template <class T> struct remove_reference<T&&> { typedef T type; }; argument 10 template <class T> typename remove_reference<T>::type &&move(T &&t);
|
| H A D | warn-redundant-move.cpp | 8 template <class T> struct remove_reference { typedef T type; }; argument 9 template <class T> struct remove_reference<T&> { typedef T type; }; argument 10 template <class T> struct remove_reference<T&&> { typedef T type; }; argument 12 template <class T> typename remove_reference<T>::type &&move(T &&t);
|
| H A D | builtin-std-move.cpp | 29 template<typename T> struct remove_reference { using type = T; }; struct 30 template<typename T> struct remove_reference<T&> { using type = T; }; argument 31 template<typename T> struct remove_reference<T&&> { using type = T; }; struct 36 template<typename T> CONSTEXPR T &&forward(typename remove_reference<T>::type &x) { in forward() 41 template<typename T> CONSTEXPR T &&forward(typename remove_reference<T>::type &&x) { in forward()
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_type_traits.h | 63 struct remove_reference { 67 struct remove_reference<T&> { 71 struct remove_reference<T&&> { 76 WARN_UNUSED_RESULT inline typename remove_reference<T>::type&& move(T&& t) { 77 return static_cast<typename remove_reference<T>::type&&>(t); 82 typename remove_reference<T>::type& t) { 88 typename remove_reference<T>::type&& t) {
|
| /llvm-project-15.0.7/clang/test/CXX/over/over.match/over.match.best/over.ics.rank/ |
| H A D | p3-0x.cpp | 39 struct remove_reference { struct 44 struct remove_reference<T&> { argument 49 struct remove_reference<T&&> { argument 54 template<typename T> int &f(typename remove_reference<T>::type&); argument 55 template<typename T> float &f(typename remove_reference<T>::type&&);
|
| /llvm-project-15.0.7/clang/test/AST/ |
| H A D | ast-dump-openmp-begin-declare-variant_reference.cpp | 5 template <class _Tp> struct remove_reference { typedef _Tp type; }; argument 6 template <class _Tp> struct remove_reference<_Tp &> { typedef _Tp type; }; struct 7 template <class _Tp> struct remove_reference<_Tp &&> { typedef _Tp type; }; struct 10 inline typename remove_reference<_Tp>::type && 12 typedef typename remove_reference<_Tp>::type _Up; in move()
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/misc/ |
| H A D | throw-by-value-catch-by-reference.cpp | 14 template <class T> struct remove_reference { typedef T type; }; argument 15 template <class T> struct remove_reference<T &> { typedef T type; }; argument 16 template <class T> struct remove_reference<T &&> { typedef T type; }; struct 18 template <typename T> typename remove_reference<T>::type &&move(T &&arg) { in move() 19 return static_cast<typename remove_reference<T>::type &&>(arg); in move()
|
| H A D | unconventional-assign-operator.cpp | 5 struct remove_reference { typedef T type; }; argument 7 struct remove_reference<T &> { typedef T type; }; struct 9 struct remove_reference<T &&> { typedef T type; }; struct 11 typename remove_reference<T>::type &&move(T &&t);
|
| /llvm-project-15.0.7/libcxx/include/__type_traits/ |
| H A D | remove_reference.h | 21 template <class _Tp> struct _LIBCPP_TEMPLATE_VIS remove_reference {typedef _LIBCPP_NODEBUG _… struct 22 template <class _Tp> struct _LIBCPP_TEMPLATE_VIS remove_reference<_Tp&> {typedef _LIBCPP_NODEBUG _… 23 template <class _Tp> struct _LIBCPP_TEMPLATE_VIS remove_reference<_Tp&&> {typedef _LIBCPP_NODEBUG _… 26 template <class _Tp> using remove_reference_t = typename remove_reference<_Tp>::type;
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/utility/as_const/ |
| H A D | as_const.pass.cpp | 26 …static_assert(std::is_const<typename std::remove_reference<decltype(std::as_const … in test() 27 …static_assert(std::is_const<typename std::remove_reference<decltype(std::as_const< T… in test() 28 …static_assert(std::is_const<typename std::remove_reference<decltype(std::as_const<const T… in test() 29 …static_assert(std::is_const<typename std::remove_reference<decltype(std::as_const<volatile T… in test() 30 …static_assert(std::is_const<typename std::remove_reference<decltype(std::as_const<const volatile T… in test()
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/ |
| H A D | sanitizer_type_traits_test.cpp | 38 ASSERT_TRUE((is_same<int, remove_reference<int>::type>::value)); in TEST() 39 ASSERT_TRUE((is_same<const int, remove_reference<const int>::type>::value)); in TEST() 40 ASSERT_TRUE((is_same<int, remove_reference<int&>::type>::value)); in TEST() 41 ASSERT_TRUE((is_same<const int, remove_reference<const int&>::type>::value)); in TEST() 42 ASSERT_TRUE((is_same<int, remove_reference<int&&>::type>::value)); in TEST()
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/ |
| H A D | move-forwarding-reference.cpp | 4 template <typename> struct remove_reference; 6 template <typename _Tp> struct remove_reference { typedef _Tp type; }; struct 8 template <typename _Tp> struct remove_reference<_Tp &> { typedef _Tp type; }; struct 10 template <typename _Tp> struct remove_reference<_Tp &&> { typedef _Tp type; }; struct 13 constexpr typename std::remove_reference<_Tp>::type &&move(_Tp &&__t); argument
|
| /llvm-project-15.0.7/clang/test/SemaCUDA/ |
| H A D | implicit-member-target.cu | 164 template <class T> struct remove_reference { typedef T type; }; argument 165 template <class T> struct remove_reference<T&> { typedef T type; }; argument 166 template <class T> struct remove_reference<T&&> { typedef T type; }; struct 168 template <class T> typename remove_reference<T>::type&& move(T&& t);
|
| H A D | implicit-member-target-inherited.cu | 181 template <class T> struct remove_reference { typedef T type; }; argument 182 template <class T> struct remove_reference<T&> { typedef T type; }; argument 183 template <class T> struct remove_reference<T&&> { typedef T type; }; argument 185 template <class T> typename remove_reference<T>::type&& move(T&& t);
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/Inputs/unchecked-optional-access/absl/types/ |
| H A D | optional.h | 8 template <typename T> struct remove_reference { using type = T; }; argument 9 template <typename T> struct remove_reference<T&> { using type = T; }; 10 template <typename T> struct remove_reference<T&&> { using type = T; }; 14 using remove_reference_t = typename remove_reference<T>::type;
|
| /llvm-project-15.0.7/clang/test/SemaObjCXX/ |
| H A D | block-variable-move.mm | 6 template <class T> struct remove_reference { typedef T type; }; 7 template <class T> struct remove_reference<T&> { typedef T type; }; 8 template <class T> struct remove_reference<T&&> { typedef T type; }; 10 template <class T> typename remove_reference<T>::type &&move(T &&t);
|