Fixing whitespace problems
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@111767 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -32,7 +32,7 @@ two test(const A&);
|
||||
four test(A&&);
|
||||
eight test(const A&&);
|
||||
|
||||
#endif
|
||||
#endif // _LIBCPP_MOVE
|
||||
|
||||
int main()
|
||||
{
|
||||
@@ -54,7 +54,7 @@ int main()
|
||||
static_assert(sizeof(test(std::forward<const A>(ca))) == 8, "");
|
||||
static_assert(sizeof(test(std::forward<const A>(csource()))) == 8, "");
|
||||
|
||||
#else
|
||||
#else // _LIBCPP_MOVE
|
||||
|
||||
static_assert(sizeof(test(std::forward<A&>(a))) == 1, "");
|
||||
static_assert(sizeof(test(std::forward<A>(a))) == 1, "");
|
||||
@@ -69,5 +69,5 @@ int main()
|
||||
static_assert(sizeof(test(std::forward<const A&>(csource()))) == 2, "");
|
||||
static_assert(sizeof(test(std::forward<const A>(ca))) == 2, "");
|
||||
static_assert(sizeof(test(std::forward<const A>(csource()))) == 2, "");
|
||||
#endif
|
||||
#endif // _LIBCPP_MOVE
|
||||
}
|
||||
|
||||
@@ -29,13 +29,13 @@ public:
|
||||
|
||||
A(A&&) {++move_ctor;}
|
||||
A& operator=(A&&);
|
||||
#else
|
||||
#else // _LIBCPP_MOVE
|
||||
A(const A&) {++copy_ctor;}
|
||||
A& operator=(A&);
|
||||
|
||||
operator std::__rv<A> () {return std::__rv<A>(*this);}
|
||||
A(std::__rv<A>) {++move_ctor;}
|
||||
#endif
|
||||
#endif // _LIBCPP_MOVE
|
||||
|
||||
A() {}
|
||||
};
|
||||
|
||||
@@ -45,11 +45,11 @@ int main()
|
||||
static_assert((std::is_same<decltype(std::move_if_noexcept(ci)), const int&&>::value), "");
|
||||
static_assert((std::is_same<decltype(std::move_if_noexcept(a)), const A&>::value), "");
|
||||
static_assert((std::is_same<decltype(std::move_if_noexcept(ca)), const A&>::value), "");
|
||||
#else
|
||||
#else // _LIBCPP_MOVE
|
||||
static_assert((std::is_same<decltype(std::move_if_noexcept(i)), const int>::value), "");
|
||||
static_assert((std::is_same<decltype(std::move_if_noexcept(ci)), const int>::value), "");
|
||||
static_assert((std::is_same<decltype(std::move_if_noexcept(a)), const A>::value), "");
|
||||
static_assert((std::is_same<decltype(std::move_if_noexcept(ca)), const A>::value), "");
|
||||
#endif
|
||||
#endif // _LIBCPP_MOVE
|
||||
|
||||
}
|
||||
|
||||
@@ -17,20 +17,20 @@ class move_only
|
||||
#ifdef _LIBCPP_MOVE
|
||||
move_only(const move_only&);
|
||||
move_only& operator=(const move_only&);
|
||||
#else
|
||||
#else // _LIBCPP_MOVE
|
||||
move_only(move_only&);
|
||||
move_only& operator=(move_only&);
|
||||
#endif
|
||||
#endif // _LIBCPP_MOVE
|
||||
|
||||
public:
|
||||
|
||||
#ifdef _LIBCPP_MOVE
|
||||
move_only(move_only&&) {}
|
||||
move_only& operator=(move_only&&) {}
|
||||
#else
|
||||
#else // _LIBCPP_MOVE
|
||||
operator std::__rv<move_only> () {return std::__rv<move_only>(*this);}
|
||||
move_only(std::__rv<move_only>) {}
|
||||
#endif
|
||||
#endif // _LIBCPP_MOVE
|
||||
|
||||
move_only() {}
|
||||
};
|
||||
|
||||
@@ -20,20 +20,20 @@ class move_only
|
||||
#ifdef _LIBCPP_MOVE
|
||||
move_only(const move_only&);
|
||||
move_only& operator=(const move_only&);
|
||||
#else
|
||||
#else // _LIBCPP_MOVE
|
||||
move_only(move_only&);
|
||||
move_only& operator=(move_only&);
|
||||
#endif
|
||||
#endif // _LIBCPP_MOVE
|
||||
|
||||
public:
|
||||
|
||||
#ifdef _LIBCPP_MOVE
|
||||
move_only(move_only&&) {}
|
||||
move_only& operator=(move_only&&) {}
|
||||
#else
|
||||
#else // _LIBCPP_MOVE
|
||||
operator std::__rv<move_only> () {return std::__rv<move_only>(*this);}
|
||||
move_only(std::__rv<move_only>) {}
|
||||
#endif
|
||||
#endif // _LIBCPP_MOVE
|
||||
|
||||
move_only() {}
|
||||
};
|
||||
|
||||
@@ -20,20 +20,20 @@ class move_only
|
||||
#ifdef _LIBCPP_MOVE
|
||||
move_only(const move_only&);
|
||||
move_only& operator=(const move_only&);
|
||||
#else
|
||||
#else // _LIBCPP_MOVE
|
||||
move_only(move_only&);
|
||||
move_only& operator=(move_only&);
|
||||
#endif
|
||||
#endif // _LIBCPP_MOVE
|
||||
|
||||
public:
|
||||
|
||||
#ifdef _LIBCPP_MOVE
|
||||
move_only(move_only&&) {}
|
||||
move_only& operator=(move_only&&) {}
|
||||
#else
|
||||
#else // _LIBCPP_MOVE
|
||||
operator std::__rv<move_only> () {return std::__rv<move_only>(*this);}
|
||||
move_only(std::__rv<move_only>) {}
|
||||
#endif
|
||||
#endif // _LIBCPP_MOVE
|
||||
|
||||
move_only() {}
|
||||
};
|
||||
|
||||
@@ -17,20 +17,20 @@ class move_only
|
||||
#ifdef _LIBCPP_MOVE
|
||||
move_only(const move_only&);
|
||||
move_only& operator=(const move_only&);
|
||||
#else
|
||||
#else // _LIBCPP_MOVE
|
||||
move_only(move_only&);
|
||||
move_only& operator=(move_only&);
|
||||
#endif
|
||||
#endif // _LIBCPP_MOVE
|
||||
|
||||
public:
|
||||
|
||||
#ifdef _LIBCPP_MOVE
|
||||
move_only(move_only&&) {}
|
||||
move_only& operator=(move_only&&) {}
|
||||
#else
|
||||
#else // _LIBCPP_MOVE
|
||||
operator std::__rv<move_only> () {return std::__rv<move_only>(*this);}
|
||||
move_only(std::__rv<move_only>) {}
|
||||
#endif
|
||||
#endif // _LIBCPP_MOVE
|
||||
|
||||
move_only() {}
|
||||
};
|
||||
|
||||
@@ -20,20 +20,20 @@ class move_only
|
||||
#ifdef _LIBCPP_MOVE
|
||||
move_only(const move_only&);
|
||||
move_only& operator=(const move_only&);
|
||||
#else
|
||||
#else // _LIBCPP_MOVE
|
||||
move_only(move_only&);
|
||||
move_only& operator=(move_only&);
|
||||
#endif
|
||||
#endif // _LIBCPP_MOVE
|
||||
|
||||
public:
|
||||
|
||||
#ifdef _LIBCPP_MOVE
|
||||
move_only(move_only&&) {}
|
||||
move_only& operator=(move_only&&) {}
|
||||
#else
|
||||
#else // _LIBCPP_MOVE
|
||||
operator std::__rv<move_only> () {return std::__rv<move_only>(*this);}
|
||||
move_only(std::__rv<move_only>) {}
|
||||
#endif
|
||||
#endif // _LIBCPP_MOVE
|
||||
|
||||
move_only() {}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user