Skip to content

Commit

Permalink
Manual clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
vjpai committed Jun 13, 2016
1 parent 15855f3 commit 97da647
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
10 changes: 6 additions & 4 deletions include/grpc++/impl/codegen/core_codegen.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ namespace grpc {
/// Implementation of the core codegen interface.
class CoreCodegen : public CoreCodegenInterface {
private:
grpc_completion_queue* grpc_completion_queue_create(void* reserved) GRPC_OVERRIDE;
grpc_completion_queue* grpc_completion_queue_create(void* reserved)
GRPC_OVERRIDE;
void grpc_completion_queue_destroy(grpc_completion_queue* cq) GRPC_OVERRIDE;
grpc_event grpc_completion_queue_pluck(grpc_completion_queue* cq, void* tag,
gpr_timespec deadline,
Expand All @@ -55,8 +56,8 @@ class CoreCodegen : public CoreCodegenInterface {

void grpc_byte_buffer_reader_init(grpc_byte_buffer_reader* reader,
grpc_byte_buffer* buffer) GRPC_OVERRIDE;
void grpc_byte_buffer_reader_destroy(
grpc_byte_buffer_reader* reader) GRPC_OVERRIDE;
void grpc_byte_buffer_reader_destroy(grpc_byte_buffer_reader* reader)
GRPC_OVERRIDE;
int grpc_byte_buffer_reader_next(grpc_byte_buffer_reader* reader,
gpr_slice* slice) GRPC_OVERRIDE;

Expand All @@ -66,7 +67,8 @@ class CoreCodegen : public CoreCodegenInterface {
gpr_slice gpr_slice_malloc(size_t length) GRPC_OVERRIDE;
void gpr_slice_unref(gpr_slice slice) GRPC_OVERRIDE;
gpr_slice gpr_slice_split_tail(gpr_slice* s, size_t split) GRPC_OVERRIDE;
void gpr_slice_buffer_add(gpr_slice_buffer* sb, gpr_slice slice) GRPC_OVERRIDE;
void gpr_slice_buffer_add(gpr_slice_buffer* sb,
gpr_slice slice) GRPC_OVERRIDE;
void gpr_slice_buffer_pop(gpr_slice_buffer* sb) GRPC_OVERRIDE;

void grpc_metadata_array_init(grpc_metadata_array* array) GRPC_OVERRIDE;
Expand Down
3 changes: 1 addition & 2 deletions include/grpc++/impl/server_builder_option.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ class ServerBuilderOption {
virtual void UpdateArguments(ChannelArguments* args) = 0;
/// Alter the ServerBuilderPlugin map that will be added into ServerBuilder.
virtual void UpdatePlugins(
std::vector<std::unique_ptr<ServerBuilderPlugin> >*
plugins) = 0;
std::vector<std::unique_ptr<ServerBuilderPlugin>>* plugins) = 0;
};

} // namespace grpc
Expand Down
3 changes: 1 addition & 2 deletions test/cpp/end2end/async_end2end_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,7 @@ class ServerBuilderSyncPluginDisabler : public ::grpc::ServerBuilderOption {
public:
void UpdateArguments(ChannelArguments* arg) GRPC_OVERRIDE {}

void UpdatePlugins(
std::vector<std::unique_ptr<ServerBuilderPlugin> >* plugins)
void UpdatePlugins(std::vector<std::unique_ptr<ServerBuilderPlugin>>* plugins)
GRPC_OVERRIDE {
auto plugin = plugins->begin();
while (plugin != plugins->end()) {
Expand Down
6 changes: 3 additions & 3 deletions test/cpp/end2end/server_builder_plugin_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ class InsertPluginServerBuilderOption : public ServerBuilderOption {

void UpdateArguments(ChannelArguments* arg) GRPC_OVERRIDE {}

void UpdatePlugins(
std::vector<std::unique_ptr<ServerBuilderPlugin> >* plugins)
void UpdatePlugins(std::vector<std::unique_ptr<ServerBuilderPlugin>>* plugins)
GRPC_OVERRIDE {
plugins->clear();

Expand Down Expand Up @@ -226,10 +225,11 @@ class ServerBuilderPluginTest : public ::testing::TestWithParam<bool> {
std::unique_ptr<Server> server_;
TestServiceImpl service_;
int port_;

private:
TestServerBuilderPlugin* CheckPresent() {
auto it = builder_->plugins_.begin();
for ( ; it != builder_->plugins_.end(); it++) {
for (; it != builder_->plugins_.end(); it++) {
if ((*it)->name() == PLUGIN_NAME) break;
}
if (it != builder_->plugins_.end()) {
Expand Down

0 comments on commit 97da647

Please sign in to comment.