Skip to content

Commit e1c6727

Browse files
committed
[libc++abi] NFC: Remove trailing whitespace
1 parent 77618cc commit e1c6727

File tree

3 files changed

+40
-40
lines changed

3 files changed

+40
-40
lines changed

libcxxabi/test/test_aux_runtime.pass.cpp

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,54 +12,54 @@
1212
#include <iostream>
1313

1414
// Test taken from 5.2.8.2
15-
// When typeid is applied to a glvalue expression whose type is a polymorphic
16-
// class type, (10.3), the result refers to a std::type_info object
17-
// representing the type of the most derived object (1.8) (that is, the
18-
// dynamic type) to which the glvalue refers. If the glvalue expression is
19-
// obtained by applying the unary * operator to a pointer(68) and the pointer
20-
// is a null pointer value (4.10), the typeid expression throws the
15+
// When typeid is applied to a glvalue expression whose type is a polymorphic
16+
// class type, (10.3), the result refers to a std::type_info object
17+
// representing the type of the most derived object (1.8) (that is, the
18+
// dynamic type) to which the glvalue refers. If the glvalue expression is
19+
// obtained by applying the unary * operator to a pointer(68) and the pointer
20+
// is a null pointer value (4.10), the typeid expression throws the
2121
// std::bad_typeid exception (18.7.3).
2222
//
23-
// 68) If p is an expression of pointer type, then *p, (*p), *(p),
23+
// 68) If p is an expression of pointer type, then *p, (*p), *(p),
2424
// ((*p)), *((p)), and so on all meet this requirement.
2525
bool bad_typeid_test () {
26-
class A { virtual void f() {}};
27-
class B { virtual void g() {}};
28-
26+
class A { virtual void f() {}};
27+
class B { virtual void g() {}};
28+
2929
B *bp = NULL;
3030
try {bool b = typeid(*bp) == typeid (A); ((void)b); }
3131
catch ( const std::bad_typeid &) { return true; }
3232
return false;
3333
}
34-
3534

36-
// The value of a failed cast to pointer type is the null pointer value of
37-
// the required result type. A failed cast to reference type throws
35+
36+
// The value of a failed cast to pointer type is the null pointer value of
37+
// the required result type. A failed cast to reference type throws
3838
// std::bad_cast (18.7.2).
3939
bool bad_cast_test () {
4040
class A { virtual void f() {}};
4141
class B { virtual void g() {}};
42-
class D : public virtual A, private B {};
42+
class D : public virtual A, private B {};
4343

4444
D d;
4545
B *bp = (B*)&d; // cast needed to break protection
4646
try { D &dr = dynamic_cast<D&> (*bp); ((void)dr); }
4747
catch ( const std::bad_cast & ) { return true; }
4848
return false;
4949
}
50-
50+
5151
int main ( ) {
5252
int ret_val = 0;
53-
53+
5454
if ( !bad_typeid_test ()) {
5555
std::cerr << "TypeID test failed!" << std::endl;
5656
ret_val = 1;
5757
}
58-
58+
5959
if ( !bad_cast_test ()) {
6060
std::cerr << "Bad cast test failed!" << std::endl;
6161
ret_val = 1;
6262
}
63-
63+
6464
return ret_val;
6565
}

libcxxabi/test/test_vector2.pass.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ void my_terminate () { exit ( 0 ); }
1818
// Wrapper routines
1919
void *my_alloc2 ( size_t sz ) {
2020
void *p = std::malloc ( sz );
21-
// std::printf ( "Allocated %ld bytes at %lx\n", sz, (unsigned long) p );
21+
// std::printf ( "Allocated %ld bytes at %lx\n", sz, (unsigned long) p );
2222
return p;
2323
}
24-
24+
2525
void my_dealloc2 ( void *p ) {
26-
// std::printf ( "Freeing %lx\n", (unsigned long) p );
27-
std::free ( p );
26+
// std::printf ( "Freeing %lx\n", (unsigned long) p );
27+
std::free ( p );
2828
}
2929

3030
void my_dealloc3 ( void *p, size_t ) {
31-
// std::printf ( "Freeing %lx (size %ld)\n", (unsigned long) p, sz );
32-
std::free ( p );
31+
// std::printf ( "Freeing %lx (size %ld)\n", (unsigned long) p, sz );
32+
std::free ( p );
3333
}
3434

3535
void my_construct ( void *) {
@@ -72,7 +72,7 @@ void test_exception_in_destructor ( ) {
7272
}
7373
catch ( int i ) {}
7474

75-
std::cerr << "should never get here" << std::endl;
75+
std::cerr << "should never get here" << std::endl;
7676
}
7777

7878

libcxxabi/test/unwind_06.pass.cpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ double foo()
136136
double g = get(7);
137137
double h = get(8);
138138
try {
139-
try1(true);
139+
try1(true);
140140
}
141141
catch (int e) {
142142
}
@@ -148,9 +148,9 @@ double foo()
148148
assert(f == get(6));
149149
assert(g == get(7));
150150
assert(h == get(8));
151-
151+
152152
try {
153-
try2(true);
153+
try2(true);
154154
}
155155
catch (int e) {
156156
}
@@ -162,9 +162,9 @@ double foo()
162162
assert(f == get(6));
163163
assert(g == get(7));
164164
assert(h == get(8));
165-
165+
166166
try {
167-
try3(true);
167+
try3(true);
168168
}
169169
catch (int e) {
170170
}
@@ -176,9 +176,9 @@ double foo()
176176
assert(f == get(6));
177177
assert(g == get(7));
178178
assert(h == get(8));
179-
179+
180180
try {
181-
try4(true);
181+
try4(true);
182182
}
183183
catch (int e) {
184184
}
@@ -190,9 +190,9 @@ double foo()
190190
assert(f == get(6));
191191
assert(g == get(7));
192192
assert(h == get(8));
193-
193+
194194
try {
195-
try5(true);
195+
try5(true);
196196
}
197197
catch (int e) {
198198
}
@@ -204,9 +204,9 @@ double foo()
204204
assert(f == get(6));
205205
assert(g == get(7));
206206
assert(h == get(8));
207-
207+
208208
try {
209-
try6(true);
209+
try6(true);
210210
}
211211
catch (int e) {
212212
}
@@ -218,9 +218,9 @@ double foo()
218218
assert(f == get(6));
219219
assert(g == get(7));
220220
assert(h == get(8));
221-
221+
222222
try {
223-
try7(true);
223+
try7(true);
224224
}
225225
catch (int e) {
226226
}
@@ -232,9 +232,9 @@ double foo()
232232
assert(f == get(6));
233233
assert(g == get(7));
234234
assert(h == get(8));
235-
235+
236236
try {
237-
try8(true);
237+
try8(true);
238238
}
239239
catch (int e) {
240240
}

0 commit comments

Comments
 (0)