Skip to content

Commit 4c6ae7a

Browse files
committed
🎨 Clang format
1 parent 9f7a0bb commit 4c6ae7a

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

‎src/Edward/proxy_supervisor.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ Event *parseJSON(char *buff) {
5353
return new Event(*parsed.find("topic"), payload);
5454
}
5555

56-
ProxySupervisor::ProxySupervisor(Channel *duplex, warduino::mutex *mutex) : Debugger(duplex) {
56+
ProxySupervisor::ProxySupervisor(Channel *duplex, warduino::mutex *mutex)
57+
: Debugger(duplex) {
5758
debug("Starting supervisor.\n");
5859
this->mutex = mutex;
5960
this->thread = warduino::thread(runSupervisor, this);
@@ -112,7 +113,8 @@ bool ProxySupervisor::send(
112113

113114
nlohmann::basic_json<> ProxySupervisor::readReply(RFC *rfc) {
114115
while (!this->hasReplied) {
115-
WARDuino::instance()->debugger->checkDebugMessages(rfc->m, &WARDuino::instance()->program_state);
116+
WARDuino::instance()->debugger->checkDebugMessages(
117+
rfc->m, &WARDuino::instance()->program_state);
116118
}
117119
WARDuino::instance()->debugger->channel->write("read reply: succeeded\n");
118120
this->hasReplied = false;

‎src/Interpreter/interpreter.h

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class Interpreter {
5656
static void report_overflow(Module *m, uint8_t *maddr);
5757

5858
virtual ~Interpreter();
59+
5960
protected:
6061
private:
6162
};

‎src/Interpreter/proxied.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ void send_leb(Channel *channel, uint32_t value, const char *end = "") {
1212
free(buffer);
1313
}
1414

15-
bool Proxied::store(Module *m, [[maybe_unused]] uint8_t type, uint32_t addr, StackValue &sval) {
15+
bool Proxied::store(Module *m, [[maybe_unused]] uint8_t type, uint32_t addr,
16+
StackValue &sval) {
1617
m->warduino->debugger->channel->write("%02" PRIx8, interruptStore);
1718
send_leb(m->warduino->debugger->channel, addr);
1819
send_leb(m->warduino->debugger->channel, 0);

‎src/Utils/util.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ uint32_t write_LEB_signed(uint8_t *dest, uint64_t val, uint64_t bits) {
8484
}
8585

8686
if ((val == 0 && static_cast<int8_t>(byte) >= 0) ||
87-
(val == static_cast<uint64_t>(-1) && static_cast<int8_t>(byte) < 0)) {
87+
(val == static_cast<uint64_t>(-1) &&
88+
static_cast<int8_t>(byte) < 0)) {
8889
break;
8990
}
9091
byte |= 0x80;

0 commit comments

Comments
 (0)