Skip to content

Commit

Permalink
Update clang-format to 19.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
erlingrj committed Dec 12, 2024
1 parent 4a26677 commit c04d24d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
submodules: recursive
- name: Install deps
run: |
sudo apt-get install lcov
sudo apt-get install lcov pipx -y
sudo pipx install clang-format clang-tidy
- name: Setup java and gradle for compiling lfc
uses: ./.github/actions/lingua-franca
# Uncomment to SSH into the runner.
Expand Down
3 changes: 1 addition & 2 deletions include/reactor-uc/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
#include "reactor-uc/tag.h"
#include <stdbool.h>

#define EVENT_INIT(Tag, Trigger, Payload) \
{ .tag = Tag, .trigger = Trigger, .payload = Payload }
#define EVENT_INIT(Tag, Trigger, Payload) {.tag = Tag, .trigger = Trigger, .payload = Payload}

typedef struct Trigger Trigger;

Expand Down
9 changes: 3 additions & 6 deletions include/reactor-uc/tag.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,12 @@
#define NEVER_TAG \
(tag_t) { .time = NEVER, .microstep = NEVER_MICROSTEP }
// Need a separate initializer expression to comply with some C compilers
#define NEVER_TAG_INITIALIZER \
{ NEVER, NEVER_MICROSTEP }
#define NEVER_TAG_INITIALIZER {NEVER, NEVER_MICROSTEP}
#define FOREVER_TAG \
(tag_t) { .time = FOREVER, .microstep = FOREVER_MICROSTEP }
// Need a separate initializer expression to comply with some C compilers
#define FOREVER_TAG_INITIALIZER \
{ FOREVER, FOREVER_MICROSTEP }
#define ZERO_TAG \
(tag_t) { .time = 0LL, .microstep = 0u }
#define FOREVER_TAG_INITIALIZER {FOREVER, FOREVER_MICROSTEP}
#define ZERO_TAG (tag_t){.time = 0LL, .microstep = 0u}

// Returns true if timeout has elapsed.
#define CHECK_TIMEOUT(start, duration) (lf_time_physical() > ((start) + (duration)))
Expand Down

0 comments on commit c04d24d

Please sign in to comment.