Skip to content

Commit 03e3e70

Browse files
committed
Clang format
1 parent a2c41e0 commit 03e3e70

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

src/Edward/proxy_supervisor.cpp

+14-13
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ bool ProxySupervisor::send(
126126
}
127127

128128
nlohmann::basic_json<> ProxySupervisor::readReply() {
129-
while(!this->hasReplied);
129+
while (!this->hasReplied)
130+
;
130131
this->hasReplied = false;
131132
return this->proxyResult;
132133
}
@@ -214,20 +215,20 @@ void ProxySupervisor::deserializeRFCResult(RFC *rfc) {
214215
nlohmann::basic_json<> call_result = this->readReply(); // blocking
215216
rfc->success = *call_result.find("success") == 1;
216217

217-
// if (!rfc->success) {
218-
// uint16_t msg_size = 0;
219-
// memcpy(&msg_size, call_result + 1, sizeof(uint16_t));
220-
// if (msg_size > rfc->exception_size) {
221-
// delete[] rfc->exception;
222-
// rfc->exception = new char[msg_size];
223-
// rfc->exception_size = msg_size;
224-
// }
225-
// memcpy(rfc->exception, call_result + 1 + sizeof(uint16_t), msg_size);
226-
// return;
227-
// }
218+
// if (!rfc->success) {
219+
// uint16_t msg_size = 0;
220+
// memcpy(&msg_size, call_result + 1, sizeof(uint16_t));
221+
// if (msg_size > rfc->exception_size) {
222+
// delete[] rfc->exception;
223+
// rfc->exception = new char[msg_size];
224+
// rfc->exception_size = msg_size;
225+
// }
226+
// memcpy(rfc->exception, call_result + 1 + sizeof(uint16_t),
227+
// msg_size); return;
228+
// }
228229

229230
uint8_t type = *call_result.find("type");
230-
auto *result = (StackValue *)malloc(sizeof (struct StackValue));
231+
auto *result = (StackValue *)malloc(sizeof(struct StackValue));
231232
result->value_type = type;
232233
result->value = {*call_result.find("value")};
233234
rfc->result = result;

src/Edward/proxy_supervisor.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ProxySupervisor {
3333
void startPushDebuggerSocket();
3434

3535
bool send(void *t_buffer, int t_size);
36-
nlohmann::basic_json<>readReply();
36+
nlohmann::basic_json<> readReply();
3737

3838
pthread_t getThreadID();
3939

0 commit comments

Comments
 (0)