Skip to content

Commit 6d47098

Browse files
Apply _existing_ code format to codebase (#1340)
In #946 the codebase was reformatted for consistency, but as this was not enforced the codebase has drifted since then. Reformatted with `scripts/format-all.sh`. --------- Co-authored-by: ihsan demir <ihsandemir@gmail.com>
1 parent 644c55c commit 6d47098

File tree

112 files changed

+1656
-1189
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+1656
-1189
lines changed

examples/distributed-map/entry-processor/employee.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ struct hz_serializer<employee_raise_entry_processor>
6060
static void write_data(
6161
const employee_raise_entry_processor& object,
6262
hazelcast::client::serialization::object_data_output& out)
63-
{}
63+
{
64+
}
6465

6566
employee_raise_entry_processor read_data(
6667
hazelcast::client::serialization::object_data_input& in)

examples/distributed-map/map-interceptor/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ struct hz_serializer<MapInterceptor> : identified_data_serializer
3232
static void write_data(
3333
const MapInterceptor& object,
3434
hazelcast::client::serialization::object_data_output& out)
35-
{}
35+
{
36+
}
3637

3738
static MapInterceptor read_data(
3839
hazelcast::client::serialization::object_data_input& in)

examples/distributed-map/partitionaware/partitionAwarePutGet.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ struct PartitionAwareString
2121
{
2222
PartitionAwareString(const std::string& actual_key)
2323
: actual_key(actual_key)
24-
{}
24+
{
25+
}
2526

2627
const std::string* get_partition_key() const override
2728
{

examples/distributed-map/query/employee.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,8 @@ void
269269
hz_serializer<examples::employee_entry_comparator>::write_data(
270270
const examples::employee_entry_comparator& object,
271271
object_data_output& writer)
272-
{}
272+
{
273+
}
273274

274275
examples::employee_entry_comparator
275276
hz_serializer<examples::employee_entry_comparator>::read_data(

examples/pipeline/PipeliningDemo.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ class PipeliningDemo
3636
: client_(hazelcast::new_client().get())
3737
, map_(client_.get_map("map").get())
3838
, gen_(rd_())
39-
{}
39+
{
40+
}
4041

4142
void init()
4243
{

examples/sql/sql_query_with_portable.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ main()
104104
)")
105105
.get();
106106

107-
std::cout << "Mapping created. Affected row count:" << result->update_count()
108-
<< std::endl;
107+
std::cout << "Mapping created. Affected row count:"
108+
<< result->update_count() << std::endl;
109109

110110
// One can select all rows of the table with *.
111111
result = sql.execute("SELECT * FROM person_table").get();
@@ -114,7 +114,8 @@ main()
114114

115115
// Fetch people older than 38
116116
result = sql.execute("SELECT * FROM person_table WHERE age > ?", 38).get();
117-
std::cout << "Query(SELECT * FROM person_table WHERE age > 38) result:" << std::endl;
117+
std::cout << "Query(SELECT * FROM person_table WHERE age > 38) result:"
118+
<< std::endl;
118119
print_result(*result);
119120

120121
std::cout << "Finished" << std::endl;

hazelcast/include/hazelcast/client/connection/ReadHandler.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
namespace hazelcast {
3131
namespace client {
3232

33-
namespace serialization {}
33+
namespace serialization {
34+
}
3435
namespace spi {
3536
class ClientContext;
3637
}

hazelcast/include/hazelcast/client/entry_view.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ class entry_view
5252
, last_stored_time(lastStoredTime)
5353
, last_update_time(lastUpdateTime)
5454
, version(version)
55-
{}
55+
{
56+
}
5657

5758
/**
5859
* key

hazelcast/include/hazelcast/client/exception/iexception.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ class exception_builder
104104
public:
105105
explicit exception_builder(const std::string& source)
106106
: source_(source)
107-
{}
107+
{
108+
}
108109

109110
template<typename T>
110111
exception_builder& operator<<(const T& message)

hazelcast/include/hazelcast/client/hazelcast_client.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ namespace client {
7171
* Our C++ client is completely open source and the source code is freely
7272
* available at https://github.com/hazelcast/hazelcast-cpp-client . Please feel
7373
* free to contribute. You can join our community at
74-
* https://hazelcastcommunity.slack.com/channels/cpp-client where you can find answers
75-
* to your questions.
74+
* https://hazelcastcommunity.slack.com/channels/cpp-client where you can find
75+
* answers to your questions.
7676
*/
7777
class HAZELCAST_API hazelcast_client
7878
{

0 commit comments

Comments
 (0)