Skip to content

Commit 42c08cb

Browse files
dbaileychessaardappel
authored andcommitted
Ran src/clang-format-all.sh (#5617)
1 parent 33d5dd9 commit 42c08cb

File tree

9 files changed

+110
-94
lines changed

9 files changed

+110
-94
lines changed

grpc/src/compiler/schema_interface.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434
#ifndef GRPC_INTERNAL_COMPILER_SCHEMA_INTERFACE_H
3535
#define GRPC_INTERNAL_COMPILER_SCHEMA_INTERFACE_H
3636

37-
#include "src/compiler/config.h"
38-
3937
#include <memory>
4038
#include <vector>
4139

40+
#include "src/compiler/config.h"
41+
4242
#ifndef GRPC_CUSTOM_STRING
4343
# include <string>
4444
# define GRPC_CUSTOM_STRING std::string

grpc/tests/grpctest.cpp

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414
* limitations under the License.
1515
*/
1616

17-
#include <thread>
18-
1917
#include <grpc++/grpc++.h>
2018

19+
#include <thread>
20+
2121
#include "monster_test.grpc.fb.h"
2222
#include "monster_test_generated.h"
2323
#include "test_assert.h"
2424

2525
using namespace MyGame::Example;
26-
using flatbuffers::grpc::MessageBuilder;
2726
using flatbuffers::FlatBufferBuilder;
27+
using flatbuffers::grpc::MessageBuilder;
2828

2929
void message_builder_tests();
3030

@@ -97,8 +97,7 @@ void RunServer() {
9797
server_instance->Wait();
9898
}
9999

100-
template <class Builder>
101-
void StoreRPC(MonsterStorage::Stub *stub) {
100+
template<class Builder> void StoreRPC(MonsterStorage::Stub *stub) {
102101
Builder fbb;
103102
grpc::ClientContext context;
104103
// Build a request with the name set.
@@ -119,8 +118,7 @@ void StoreRPC(MonsterStorage::Stub *stub) {
119118
}
120119
}
121120

122-
template <class Builder>
123-
void RetrieveRPC(MonsterStorage::Stub *stub) {
121+
template<class Builder> void RetrieveRPC(MonsterStorage::Stub *stub) {
124122
Builder fbb;
125123
grpc::ClientContext context;
126124
fbb.Clear();
@@ -155,7 +153,6 @@ int grpc_server_test() {
155153
RetrieveRPC<MessageBuilder>(stub.get());
156154
RetrieveRPC<FlatBufferBuilder>(stub.get());
157155

158-
159156
#if !FLATBUFFERS_GRPC_DISABLE_AUTO_VERIFICATION
160157
{
161158
// Test that an invalid request errors out correctly
@@ -181,7 +178,7 @@ int grpc_server_test() {
181178
return 0;
182179
}
183180

184-
int main(int /*argc*/, const char * /*argv*/ []) {
181+
int main(int /*argc*/, const char * /*argv*/[]) {
185182
message_builder_tests();
186183
grpc_server_test();
187184

@@ -193,4 +190,3 @@ int main(int /*argc*/, const char * /*argv*/ []) {
193190
return 1;
194191
}
195192
}
196-

0 commit comments

Comments
 (0)