Skip to content

Commit 8a0d3fe

Browse files
committed
🎨 Clang format
1 parent 6807394 commit 8a0d3fe

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

β€Žsrc/Edward/proxy_supervisor.cppβ€Ž

Lines changed: 4 additions & 2 deletions
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.cppβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,8 @@ bool Interpreter::interpret(Module *m, bool waiting) {
449449
}
450450

451451
// Resolve all unhandled callback events
452-
while (CallbackHandler::resolving_event && CallbackHandler::resolve_event())
453-
;
452+
while (CallbackHandler::resolving_event &&
453+
CallbackHandler::resolve_event());
454454

455455
dbg_trace("Interpretation ended %s with status %s\n",
456456
program_done ? "expectedly" : "unexpectedly",

β€Žsrc/Interpreter/interpreter.hβ€Ž

Lines changed: 1 addition & 0 deletions
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β€Ž

Lines changed: 2 additions & 1 deletion
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β€Ž

Lines changed: 2 additions & 1 deletion
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)