[cfe-commits] [libcxx] r142237 - in /libcxx/trunk: include/thread include/type_traits src/locale.cpp src/support/win32/locale_win32.cpp src/support/win32/support.cpp

Howard Hinnant hhinnant at apple.com
Mon Oct 17 13:08:59 PDT 2011


Author: hhinnant
Date: Mon Oct 17 15:08:59 2011
New Revision: 142237

URL: http://llvm.org/viewvc/llvm-project?rev=142237&view=rev
Log:
de-tabbify

Modified:
    libcxx/trunk/include/thread
    libcxx/trunk/include/type_traits
    libcxx/trunk/src/locale.cpp
    libcxx/trunk/src/support/win32/locale_win32.cpp
    libcxx/trunk/src/support/win32/support.cpp

Modified: libcxx/trunk/include/thread
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/thread?rev=142237&r1=142236&r2=142237&view=diff
==============================================================================
--- libcxx/trunk/include/thread (original)
+++ libcxx/trunk/include/thread Mon Oct 17 15:08:59 2011
@@ -137,40 +137,40 @@
 void
 __thread_specific_ptr<_Tp>::__at_thread_exit(void* __p)
 {
-	delete static_cast<pointer>(__p);
+    delete static_cast<pointer>(__p);
 }
 
 template <class _Tp>
 __thread_specific_ptr<_Tp>::__thread_specific_ptr()
 {
     int __ec = pthread_key_create(&__key_, &__thread_specific_ptr::__at_thread_exit);
-	if (__ec)
-		throw system_error(error_code(__ec, system_category()),
-		                   "__thread_specific_ptr construction failed");
+    if (__ec)
+        throw system_error(error_code(__ec, system_category()),
+                           "__thread_specific_ptr construction failed");
 }
 
 template <class _Tp>
 __thread_specific_ptr<_Tp>::~__thread_specific_ptr()
 {
-	pthread_key_delete(__key_);
+    pthread_key_delete(__key_);
 }
 
 template <class _Tp>
 typename __thread_specific_ptr<_Tp>::pointer
 __thread_specific_ptr<_Tp>::release()
 {
-	pointer __p = get();
-	pthread_setspecific(__key_, 0);
-	return __p;
+    pointer __p = get();
+    pthread_setspecific(__key_, 0);
+    return __p;
 }
 
 template <class _Tp>
 void
 __thread_specific_ptr<_Tp>::reset(pointer __p)
 {
-	pointer __p_old = get();
-	pthread_setspecific(__key_, __p);
-	delete __p_old;
+    pointer __p_old = get();
+    pthread_setspecific(__key_, __p);
+    delete __p_old;
 }
 
 class thread;

Modified: libcxx/trunk/include/type_traits
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/type_traits?rev=142237&r1=142236&r2=142237&view=diff
==============================================================================
--- libcxx/trunk/include/type_traits (original)
+++ libcxx/trunk/include/type_traits Mon Oct 17 15:08:59 2011
@@ -1277,9 +1277,9 @@
 _Tp&&
 forward(typename std::remove_reference<_Tp>::type&& __t) _NOEXCEPT
 {
- 	static_assert(!std::is_lvalue_reference<_Tp>::value,
- 	              "Can not forward an rvalue as an lvalue.");
- 	return static_cast<_Tp&&>(__t);
+    static_assert(!std::is_lvalue_reference<_Tp>::value,
+                  "Can not forward an rvalue as an lvalue.");
+    return static_cast<_Tp&&>(__t);
 }
 
 #else  // _LIBCPP_HAS_NO_RVALUE_REFERENCES

Modified: libcxx/trunk/src/locale.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/locale.cpp?rev=142237&r1=142236&r2=142237&view=diff
==============================================================================
--- libcxx/trunk/src/locale.cpp (original)
+++ libcxx/trunk/src/locale.cpp Mon Oct 17 15:08:59 2011
@@ -1032,7 +1032,7 @@
 #ifdef _LIBCPP_WCTYPE_IS_MASK
     return static_cast<bool>(iswctype_l(c, m, __l));
 #else
-	bool result = true;
+    bool result = true;
     if (m & space && !iswspace_l(c, __l)) result = false;
     if (m & print && !iswprint_l(c, __l)) result = false;
     if (m & cntrl && !iswcntrl_l(c, __l)) result = false;

Modified: libcxx/trunk/src/support/win32/locale_win32.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/support/win32/locale_win32.cpp?rev=142237&r1=142236&r2=142237&view=diff
==============================================================================
--- libcxx/trunk/src/support/win32/locale_win32.cpp (original)
+++ libcxx/trunk/src/support/win32/locale_win32.cpp Mon Oct 17 15:08:59 2011
@@ -22,10 +22,10 @@
     locale_t old_locale = _get_current_locale();
     // uselocale sets the thread's locale by definition, so unconditionally use thread-local locale
     _configthreadlocale( _ENABLE_PER_THREAD_LOCALE );
-	// uselocale sets all categories
-	setlocale( LC_ALL, newloc->locinfo->lc_category[LC_ALL].locale );
-	// uselocale returns the old locale_t
-	return old_locale;
+    // uselocale sets all categories
+    setlocale( LC_ALL, newloc->locinfo->lc_category[LC_ALL].locale );
+    // uselocale returns the old locale_t
+    return old_locale;
 }
 lconv *localeconv_l( locale_t loc )
 {

Modified: libcxx/trunk/src/support/win32/support.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/support/win32/support.cpp?rev=142237&r1=142236&r2=142237&view=diff
==============================================================================
--- libcxx/trunk/src/support/win32/support.cpp (original)
+++ libcxx/trunk/src/support/win32/support.cpp Mon Oct 17 15:08:59 2011
@@ -21,7 +21,7 @@
     va_start(ap, fmt);
     int result = vasprintf(sptr, fmt, ap);
     va_end(ap);
-	return result;
+    return result;
 }
 int vasprintf( char **sptr, const char *__restrict__ fmt, va_list ap )
 {





More information about the cfe-commits mailing list