Skip to content

Commit f0bd326

Browse files
committed
ClangFormat: Bump to version 20
1 parent e0b67b1 commit f0bd326

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/cmake.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ jobs:
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v4
18+
- name: Install dependencies
19+
run: sudo apt-get update && sudo apt-get install clang-format-20
1820
- name: Check version
19-
run: clang-format --version
21+
run: clang-format-20 --version
2022
- name: Format code
21-
run: find src/ test/ -iname '*.c' -or -iname '*.cpp' -or -iname '*.m' -or -iname '*.mm' -or -iname '*.h' -or -iname '*.hpp' | xargs clang-format -i -style=file
23+
run: find src/ test/ -iname '*.c' -or -iname '*.cpp' -or -iname '*.m' -or -iname '*.mm' -or -iname '*.h' -or -iname '*.hpp' | xargs clang-format-20 -i -style=file
2224
- name: Check diff
2325
run: git diff --exit-code
2426

src/nfd_gtk.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,8 @@ void zxdg_exported_v1_handle(void* context, struct zxdg_exported_v1*, const char
415415
gdk_wayland_window_set_transient_for_exported(childWindow, const_cast<char*>(handle));
416416
}
417417

418-
constexpr struct zxdg_exported_v1_listener wayland_xdg_exported_v1_listener {
419-
&zxdg_exported_v1_handle
420-
};
418+
constexpr struct zxdg_exported_v1_listener wayland_xdg_exported_v1_listener{
419+
&zxdg_exported_v1_handle};
421420
#endif
422421

423422
// This is an RAII class that wraps the parenting of a GtkWidget (the file dialog).

0 commit comments

Comments
 (0)