Skip to content

Commit 1a37d1f

Browse files
author
Michael Penick
committed
Rerun clang-format
1 parent 28db6f2 commit 1a37d1f

33 files changed

Lines changed: 112 additions & 112 deletions

cpp-driver/gtests/src/integration/integration.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class Integration : public testing::Test {
158158
/**
159159
* Handle for interacting with CCM
160160
*/
161-
SharedPtr<CCM::Bridge, StdDeleter<CCM::Bridge>> ccm_;
161+
SharedPtr<CCM::Bridge, StdDeleter<CCM::Bridge> > ccm_;
162162
/**
163163
* Logger instance for handling driver log messages
164164
*/

cpp-driver/gtests/src/integration/nullable_value.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Comparable {
5151
* value to be NULL.
5252
*/
5353
template <typename T>
54-
class NullableValue : public Comparable<NullableValue<T>> {
54+
class NullableValue : public Comparable<NullableValue<T> > {
5555
public:
5656
/**
5757
* Constructor for a NULL value

cpp-driver/gtests/src/integration/options.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ const std::string& Options::public_key() { return public_key_; }
512512

513513
const std::string& Options::private_key() { return private_key_; }
514514

515-
SharedPtr<CCM::Bridge, StdDeleter<CCM::Bridge>> Options::ccm() {
515+
SharedPtr<CCM::Bridge, StdDeleter<CCM::Bridge> > Options::ccm() {
516516
return new CCM::Bridge(Options::server_version(), Options::use_git(), Options::branch_tag(),
517517
Options::use_install_dir(), Options::install_dir(), Options::is_dse(),
518518
CCM::Bridge::DEFAULT_DSE_WORKLOAD, Options::cluster_prefix(),

cpp-driver/gtests/src/integration/options.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class Options {
220220
*
221221
* @return CCM instance
222222
*/
223-
static SharedPtr<CCM::Bridge, StdDeleter<CCM::Bridge>> ccm();
223+
static SharedPtr<CCM::Bridge, StdDeleter<CCM::Bridge> > ccm();
224224

225225
private:
226226
/**

cpp-driver/gtests/src/integration/shared_ptr.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ struct StdDeleter {
2727
/**
2828
* Reference counted objects container
2929
*/
30-
template <typename T, class D = datastax::internal::DefaultDeleter<T>>
31-
class ObjectRef : public datastax::internal::RefCounted<ObjectRef<T, D>> {
30+
template <typename T, class D = datastax::internal::DefaultDeleter<T> >
31+
class ObjectRef : public datastax::internal::RefCounted<ObjectRef<T, D> > {
3232
public:
3333
ObjectRef(T* ptr)
3434
: ptr_(ptr) {}
@@ -52,14 +52,14 @@ class ObjectRef : public datastax::internal::RefCounted<ObjectRef<T, D>> {
5252
/**
5353
* Shared pointer for object references
5454
*/
55-
template <typename T, class D = datastax::internal::DefaultDeleter<T>>
55+
template <typename T, class D = datastax::internal::DefaultDeleter<T> >
5656
class SharedPtr {
5757
public:
5858
SharedPtr(T* ptr = NULL)
5959
: object_(NULL) {
6060
if (ptr) {
6161
ObjectRef<T, D>* object_ref = new ObjectRef<T, D>(ptr);
62-
object_ = datastax::internal::SharedRefPtr<ObjectRef<T, D>>(object_ref);
62+
object_ = datastax::internal::SharedRefPtr<ObjectRef<T, D> >(object_ref);
6363
}
6464
}
6565

@@ -92,7 +92,7 @@ class SharedPtr {
9292
/**
9393
* Object reference
9494
*/
95-
datastax::internal::SharedRefPtr<ObjectRef<T, D>> object_;
95+
datastax::internal::SharedRefPtr<ObjectRef<T, D> > object_;
9696
};
9797

9898
#endif // __SHARED_PTR_HPP__

cpp-driver/gtests/src/integration/tests/test_cassandra_types.cpp

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ CASSANDRA_INTEGRATION_TYPED_TEST_P(CassandraTypesTest, BasicNullList) {
278278

279279
// Bind the NULL collection and insert
280280
statement.bind<Integer>(0, Integer(i));
281-
statement.bind<test::driver::List<TypeParam>>(1, value);
281+
statement.bind<test::driver::List<TypeParam> >(1, value);
282282
this->session_.execute(statement);
283283

284284
// Validate the insert and result
@@ -287,7 +287,7 @@ CASSANDRA_INTEGRATION_TYPED_TEST_P(CassandraTypesTest, BasicNullList) {
287287
Result result = this->session_.execute(select_statement);
288288
ASSERT_EQ(1u, result.row_count());
289289
test::driver::List<TypeParam> select_value =
290-
result.first_row().next().as<test::driver::List<TypeParam>>();
290+
result.first_row().next().as<test::driver::List<TypeParam> >();
291291
ASSERT_EQ(value, select_value);
292292
ASSERT_TRUE(select_value.is_null());
293293
}
@@ -322,7 +322,7 @@ CASSANDRA_INTEGRATION_TYPED_TEST_P(CassandraTypesTest, BasicNullMap) {
322322

323323
// Bind the NULL collection and insert
324324
statement.bind<Integer>(0, Integer(i));
325-
statement.bind<test::driver::Map<TypeParam, TypeParam>>(1, value);
325+
statement.bind<test::driver::Map<TypeParam, TypeParam> >(1, value);
326326
this->session_.execute(statement);
327327

328328
// Validate the insert and result
@@ -331,7 +331,7 @@ CASSANDRA_INTEGRATION_TYPED_TEST_P(CassandraTypesTest, BasicNullMap) {
331331
Result result = this->session_.execute(select_statement);
332332
ASSERT_EQ(1u, result.row_count());
333333
test::driver::Map<TypeParam, TypeParam> select_value =
334-
result.first_row().next().as<test::driver::Map<TypeParam, TypeParam>>();
334+
result.first_row().next().as<test::driver::Map<TypeParam, TypeParam> >();
335335
ASSERT_EQ(value, select_value);
336336
ASSERT_TRUE(select_value.is_null());
337337
}
@@ -366,7 +366,7 @@ CASSANDRA_INTEGRATION_TYPED_TEST_P(CassandraTypesTest, BasicNullSet) {
366366

367367
// Bind the NULL collection and insert
368368
statement.bind<Integer>(0, Integer(i));
369-
statement.bind<test::driver::Set<TypeParam>>(1, value);
369+
statement.bind<test::driver::Set<TypeParam> >(1, value);
370370
this->session_.execute(statement);
371371

372372
// Validate the insert and result
@@ -375,7 +375,7 @@ CASSANDRA_INTEGRATION_TYPED_TEST_P(CassandraTypesTest, BasicNullSet) {
375375
Result result = this->session_.execute(select_statement);
376376
ASSERT_EQ(1u, result.row_count());
377377
test::driver::Set<TypeParam> select_value =
378-
result.first_row().next().as<test::driver::Set<TypeParam>>();
378+
result.first_row().next().as<test::driver::Set<TypeParam> >();
379379
ASSERT_EQ(value, select_value);
380380
ASSERT_TRUE(select_value.is_null());
381381
}
@@ -411,23 +411,23 @@ CASSANDRA_INTEGRATION_TYPED_TEST_P(CassandraTypesTest, List) {
411411

412412
// Bind both the primary key and the value with the Cassandra type list and insert
413413
if (this->is_key_allowed_) {
414-
statement.bind<List<TypeParam>>(0, list);
414+
statement.bind<List<TypeParam> >(0, list);
415415
} else {
416416
statement.bind<Integer>(0, Integer(i));
417417
}
418-
statement.bind<List<TypeParam>>(1, list);
418+
statement.bind<List<TypeParam> >(1, list);
419419
this->session_.execute(statement);
420420

421421
// Validate the result
422422
Statement select_statement(this->select_query_, 1);
423423
if (this->is_key_allowed_) {
424-
select_statement.bind<List<TypeParam>>(0, list);
424+
select_statement.bind<List<TypeParam> >(0, list);
425425
} else {
426426
select_statement.bind<Integer>(0, Integer(i));
427427
}
428428
Result result = this->session_.execute(select_statement);
429429
ASSERT_EQ(1u, result.row_count());
430-
List<TypeParam> result_list(result.first_row().next().as<List<TypeParam>>());
430+
List<TypeParam> result_list(result.first_row().next().as<List<TypeParam> >());
431431
ASSERT_EQ(list.value(), result_list.value());
432432
}
433433
}
@@ -465,23 +465,23 @@ CASSANDRA_INTEGRATION_TYPED_TEST_P(CassandraTypesTest, Set) {
465465

466466
// Bind both the primary key and the value with the Cassandra type set and insert
467467
if (this->is_key_allowed_) {
468-
statement.bind<Set<TypeParam>>(0, set);
468+
statement.bind<Set<TypeParam> >(0, set);
469469
} else {
470470
statement.bind<Integer>(0, Integer(i));
471471
}
472-
statement.bind<Set<TypeParam>>(1, set);
472+
statement.bind<Set<TypeParam> >(1, set);
473473
this->session_.execute(statement);
474474

475475
// Validate the result
476476
Statement select_statement(this->select_query_, 1);
477477
if (this->is_key_allowed_) {
478-
select_statement.bind<Set<TypeParam>>(0, set);
478+
select_statement.bind<Set<TypeParam> >(0, set);
479479
} else {
480480
select_statement.bind<Integer>(0, Integer(i));
481481
}
482482
Result result = this->session_.execute(select_statement);
483483
ASSERT_EQ(1u, result.row_count());
484-
Set<TypeParam> result_set = result.first_row().next().as<Set<TypeParam>>();
484+
Set<TypeParam> result_set = result.first_row().next().as<Set<TypeParam> >();
485485
ASSERT_EQ(set.value(), result_set.value());
486486
}
487487
}
@@ -524,17 +524,17 @@ CASSANDRA_INTEGRATION_TYPED_TEST_P(CassandraTypesTest, Map) {
524524
Statement& statement = statements[i];
525525

526526
// Bind both the primary key and the value with the Cassandra type map and insert
527-
statement.bind<Map<TypeParam, TypeParam>>(0, map);
528-
statement.bind<Map<TypeParam, TypeParam>>(1, map);
527+
statement.bind<Map<TypeParam, TypeParam> >(0, map);
528+
statement.bind<Map<TypeParam, TypeParam> >(1, map);
529529
this->session_.execute(statement);
530530

531531
// Validate the result
532532
Statement select_statement(this->select_query_, 1);
533-
select_statement.bind<Map<TypeParam, TypeParam>>(0, map);
533+
select_statement.bind<Map<TypeParam, TypeParam> >(0, map);
534534
Result result = this->session_.execute(select_statement);
535535
ASSERT_EQ(1u, result.row_count());
536536
Column column = result.first_row().next();
537-
Map<TypeParam, TypeParam> result_map(column.as<Map<TypeParam, TypeParam>>());
537+
Map<TypeParam, TypeParam> result_map(column.as<Map<TypeParam, TypeParam> >());
538538
ASSERT_EQ(map_values, result_map.value());
539539
}
540540
} else {
@@ -559,7 +559,7 @@ CASSANDRA_INTEGRATION_TYPED_TEST_P(CassandraTypesTest, Map) {
559559

560560
// Bind both the primary key and the value with the Cassandra type map and insert
561561
statement.bind<Integer>(0, Integer(i));
562-
statement.bind<Map<Integer, TypeParam>>(1, map);
562+
statement.bind<Map<Integer, TypeParam> >(1, map);
563563
this->session_.execute(statement);
564564

565565
// Validate the result
@@ -568,7 +568,7 @@ CASSANDRA_INTEGRATION_TYPED_TEST_P(CassandraTypesTest, Map) {
568568
Result result = this->session_.execute(select_statement);
569569
ASSERT_EQ(1u, result.row_count());
570570
Column column = result.first_row().next();
571-
Map<Integer, TypeParam> result_map(column.as<Map<Integer, TypeParam>>());
571+
Map<Integer, TypeParam> result_map(column.as<Map<Integer, TypeParam> >());
572572
ASSERT_EQ(map_values, result_map.value());
573573
}
574574
}

cpp-driver/gtests/src/integration/tests/test_exec_profile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class ExecutionProfileTest : public Integration {
163163
// Get the data center and token values
164164
Row row = result.first_row();
165165
Text data_center = row.next().as<Text>();
166-
std::set<Text> tokens = row.next().as<Set<Text>>().value();
166+
std::set<Text> tokens = row.next().as<Set<Text> >().value();
167167

168168
// Iterate over the tokens and update the token/host mapping
169169
for (std::set<Text>::const_iterator it = tokens.begin(); it != tokens.end(); ++it) {

cpp-driver/gtests/src/integration/values/list.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace test { namespace driver {
2929
template <typename T>
3030
class List
3131
: public Collection
32-
, Comparable<List<T>> {
32+
, Comparable<List<T> > {
3333
public:
3434
List()
3535
: Collection(CASS_COLLECTION_TYPE_LIST) {}

cpp-driver/gtests/src/integration/values/set.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace test { namespace driver {
2727
template <typename T>
2828
class Set
2929
: public Collection
30-
, Comparable<Set<T>> {
30+
, Comparable<Set<T> > {
3131
public:
3232
Set()
3333
: Collection(CASS_COLLECTION_TYPE_SET) {}

cpp-driver/gtests/src/unit/mockssandra.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ inline const char* decode_uuid(const char* input, CassUuid* output) {
704704
}
705705

706706
inline const char* decode_string_map(const char* input, const char* end,
707-
Vector<std::pair<String, String>>* output) {
707+
Vector<std::pair<String, String> >* output) {
708708

709709
uint16_t len = 0;
710710
const char* pos = decode_uint16(input, end, &len);

0 commit comments

Comments
 (0)