mirror of
https://github.com/i3/i3.git
synced 2025-12-01 12:06:20 +00:00
Update to clang-format-20 (#6521)
This commit is contained in:
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@ -86,8 +86,8 @@ jobs:
|
|||||||
run: ./release-notes/generator.pl
|
run: ./release-notes/generator.pl
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install -y clang-format-15
|
sudo apt-get install -y clang-format-20
|
||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
run: clang-format-15 --dry-run --Werror $(git ls-files '*.c' '*.h')
|
run: clang-format-20 --dry-run --Werror $(git ls-files '*.c' '*.h')
|
||||||
- name: Verify safe wrapper functions are used
|
- name: Verify safe wrapper functions are used
|
||||||
run: ./travis/check-safe-wrappers.sh
|
run: ./travis/check-safe-wrappers.sh
|
||||||
|
|||||||
@ -96,8 +96,7 @@ int main(int argc, char *argv[]) {
|
|||||||
{"follow", no_argument, 0, 'f'},
|
{"follow", no_argument, 0, 'f'},
|
||||||
#endif
|
#endif
|
||||||
{"help", no_argument, 0, 'h'},
|
{"help", no_argument, 0, 'h'},
|
||||||
{0, 0, 0, 0}
|
{0, 0, 0, 0}};
|
||||||
};
|
|
||||||
|
|
||||||
#if !defined(__OpenBSD__)
|
#if !defined(__OpenBSD__)
|
||||||
char *options_string = "s:vfVh";
|
char *options_string = "s:vfVh";
|
||||||
|
|||||||
@ -447,9 +447,7 @@
|
|||||||
|
|
||||||
#define CIRCLEQ_HEAD_INITIALIZER(head) \
|
#define CIRCLEQ_HEAD_INITIALIZER(head) \
|
||||||
{ \
|
{ \
|
||||||
CIRCLEQ_END(&head) \
|
CIRCLEQ_END(&head), CIRCLEQ_END(&head)}
|
||||||
, CIRCLEQ_END(&head) \
|
|
||||||
}
|
|
||||||
|
|
||||||
#define CIRCLEQ_ENTRY(type) \
|
#define CIRCLEQ_ENTRY(type) \
|
||||||
struct { \
|
struct { \
|
||||||
|
|||||||
Reference in New Issue
Block a user