Skip to content

Commit

Permalink
ci: Update to clang-format 19
Browse files Browse the repository at this point in the history
  • Loading branch information
robinlinden committed Jan 11, 2025
1 parent 6d3d0d5 commit 3d20a55
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,13 @@ jobs:
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Set up the llvm repository
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-add-repository "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-19 main"
- run: sudo apt-get update && sudo apt-get install --no-install-recommends clang-format-18
- name: Format
run: find . -name "*.h" -o -name "*.cpp" | xargs clang-format-18 -style=file -i
- name: Check
run: git diff --exit-code
- run: find . -name "*.h" -o -name "*.cpp" | xargs clang-format-19 -style=file -i
- run: git diff --exit-code

clang-tidy:
runs-on: ubuntu-24.04
Expand Down
2 changes: 1 addition & 1 deletion render/render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ void render_layout(gfx::ICanvas &painter,
if (auto html_bg = kGetBg("/html", layout); html_bg && html_bg != gfx::Color::from_css_name("transparent")) {
painter.clear(*html_bg);
} else if (auto body_bg = kGetBg("/html/body", layout);
body_bg && body_bg != gfx::Color::from_css_name("transparent")) {
body_bg && body_bg != gfx::Color::from_css_name("transparent")) {
painter.clear(*body_bg);
} else {
painter.clear(gfx::Color{255, 255, 255});
Expand Down

0 comments on commit 3d20a55

Please sign in to comment.