[cfe-commits] [libcxxabi] r132729 - in /libcxxabi/trunk: include/cxxabi.h src/cxa_aux_runtime.cpp test/test_guard.cpp

Howard Hinnant hhinnant at apple.com
Tue Jun 7 12:56:49 PDT 2011


Author: hhinnant
Date: Tue Jun  7 14:56:49 2011
New Revision: 132729

URL: http://llvm.org/viewvc/llvm-project?rev=132729&view=rev
Log:
tabs to spaces

Modified:
    libcxxabi/trunk/include/cxxabi.h
    libcxxabi/trunk/src/cxa_aux_runtime.cpp
    libcxxabi/trunk/test/test_guard.cpp

Modified: libcxxabi/trunk/include/cxxabi.h
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/include/cxxabi.h?rev=132729&r1=132728&r2=132729&view=diff
==============================================================================
--- libcxxabi/trunk/include/cxxabi.h (original)
+++ libcxxabi/trunk/include/cxxabi.h Tue Jun  7 14:56:49 2011
@@ -18,10 +18,10 @@
 #include <stddef.h>
 #include <stdint.h>
 
-#define	LIBCXXABI_NORETURN
+#define LIBCXXABI_NORETURN
 
 namespace std {
-	class type_info; // forward declaration
+    class type_info; // forward declaration
 }
 
 
@@ -73,72 +73,72 @@
 
 // 3.3.3 Array Construction and Destruction API
 extern void* __cxa_vec_new(size_t element_count, 
-						   size_t element_size, 
+                           size_t element_size, 
                            size_t padding_size, 
-						   void (*constructor)(void*),
-						   void (*destructor)(void*) );
+                           void (*constructor)(void*),
+                           void (*destructor)(void*) );
 
 extern void* __cxa_vec_new2(size_t element_count,
- 						    size_t element_size, 
+                            size_t element_size, 
                             size_t padding_size,
-						    void  (*constructor)(void*),
-						    void  (*destructor)(void*),
+                            void  (*constructor)(void*),
+                            void  (*destructor)(void*),
                             void* (*alloc)(size_t), 
                             void  (*dealloc)(void*) );
 
 extern void* __cxa_vec_new3(size_t element_count,
- 						    size_t element_size, 
+                            size_t element_size, 
                             size_t padding_size,
-						    void  (*constructor)(void*),
-						    void  (*destructor)(void*),
+                            void  (*constructor)(void*),
+                            void  (*destructor)(void*),
                             void* (*alloc)(size_t), 
                             void  (*dealloc)(void*, size_t) );
   
 extern void __cxa_vec_ctor(void*  array_address, 
                            size_t element_count,
                            size_t element_size, 
-						   void (*constructor)(void*),
-						   void (*destructor)(void*) );
+                           void (*constructor)(void*),
+                           void (*destructor)(void*) );
 
 
 extern void __cxa_vec_dtor(void*  array_address, 
                            size_t element_count,
-						   size_t element_size, 
-						   void (*destructor)(void*) );
+                           size_t element_size, 
+                           void (*destructor)(void*) );
 
 
 extern void __cxa_vec_cleanup(void* array_address, 
                              size_t element_count,
                              size_t element_size, 
-						     void  (*destructor)(void*) );
+                             void  (*destructor)(void*) );
 
 
 extern void __cxa_vec_delete(void*  array_address, 
                              size_t element_size, 
                              size_t padding_size, 
-						     void  (*destructor)(void*) );
+                             void  (*destructor)(void*) );
 
 
 extern void __cxa_vec_delete2(void* array_address, 
                              size_t element_size, 
                              size_t padding_size, 
-						     void  (*destructor)(void*),
+                             void  (*destructor)(void*),
                              void  (*dealloc)(void*) );
   
 
 extern void __cxa_vec_delete3(void* __array_address, 
                              size_t element_size, 
                              size_t padding_size, 
-						     void  (*destructor)(void*),
-							 void  (*dealloc) (void*, size_t));
+                             void  (*destructor)(void*),
+                             void  (*dealloc) (void*, size_t));
 
 
 extern void __cxa_vec_cctor(void*  dest_array, 
-							void*  src_array, 
-							size_t element_count, 
-							size_t element_size, 
-							void  (*constructor) (void*, void*), 
-							void  (*destructor)(void*) );
+                            void*  src_array, 
+                            size_t element_count, 
+                            size_t element_size, 
+                            void  (*constructor) (void*, void*), 
+                            void  (*destructor)(void*) );
 
 
 // 3.3.5.3 Runtime API
@@ -148,9 +148,9 @@
 
 // 3.4 Demangler API
 extern char* __cxa_demangle(const char* mangled_name, 
-							char*       output_buffer,
-							size_t*     length, 
-							int*        status);
+                            char*       output_buffer,
+                            size_t*     length, 
+                            int*        status);
 
   } // extern "C"
 } // namespace __cxxabiv1

Modified: libcxxabi/trunk/src/cxa_aux_runtime.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/cxa_aux_runtime.cpp?rev=132729&r1=132728&r2=132729&view=diff
==============================================================================
--- libcxxabi/trunk/src/cxa_aux_runtime.cpp (original)
+++ libcxxabi/trunk/src/cxa_aux_runtime.cpp Tue Jun  7 14:56:49 2011
@@ -5,9 +5,9 @@
 // This file is dual licensed under the MIT and the University of Illinois Open
 // Source Licenses. See LICENSE.TXT for details.
 //
-//	
-//	This file implements the "Auxiliary Runtime APIs"
-//	http://www.codesourcery.com/public/cxx-abi/abi-eh.html#cxx-aux
+//
+// This file implements the "Auxiliary Runtime APIs"
+// http://www.codesourcery.com/public/cxx-abi/abi-eh.html#cxx-aux
 //===----------------------------------------------------------------------===//
 
 #include "cxxabi.h"
@@ -21,12 +21,12 @@
 
 LIBCXXABI_NORETURN
 void __cxa_bad_cast (void) {
-	throw std::bad_cast();
+    throw std::bad_cast();
 }
 
 LIBCXXABI_NORETURN
 void __cxa_bad_typeid(void) {
-	throw std::bad_typeid();
+    throw std::bad_typeid();
 }
 
 }  // extern "C"

Modified: libcxxabi/trunk/test/test_guard.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/test/test_guard.cpp?rev=132729&r1=132728&r2=132729&view=diff
==============================================================================
--- libcxxabi/trunk/test/test_guard.cpp (original)
+++ libcxxabi/trunk/test/test_guard.cpp Tue Jun  7 14:56:49 2011
@@ -78,7 +78,7 @@
     static int run_count = 0;
     int increment() {
         ++run_count;
-	return 0;
+        return 0;
     }
 
     void helper() {
@@ -89,7 +89,7 @@
         std::thread t1(helper), t2(helper);
         t1.join();
         t2.join();
-	assert(run_count == 1);
+        assert(run_count == 1);
     }
 }
 
@@ -104,7 +104,7 @@
 
     int one() {
         static int b = zero();
-	return 0;
+        return 0;
     }
 
     void another_helper() {
@@ -113,14 +113,14 @@
 
     void helper() {
         static int a = one();
-	std::thread t(another_helper);
-	t.join();
+        std::thread t(another_helper);
+        t.join();
     }
 
     void test() {
         std::thread t(helper);
         t.join();
-	assert(run_count == 1);
+        assert(run_count == 1);
     }
 }
 





More information about the cfe-commits mailing list