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:
Howard Hinnant
2010-08-22 00:59:46 +00:00
parent f11ea14460
commit c52f43e72d
652 changed files with 29155 additions and 716 deletions

View File

@@ -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
}

View File

@@ -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() {}
};

View File

@@ -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
}

View File

@@ -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() {}
};

View File

@@ -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() {}
};

View File

@@ -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() {}
};

View File

@@ -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() {}
};

View File

@@ -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() {}
};