Update to clang-format-20 (#6521)

This commit is contained in:
Orestis Floros
2025-11-05 22:46:34 +01:00
committed by GitHub
parent 2711f427af
commit 197bad6f59
7 changed files with 13 additions and 16 deletions

View File

@ -86,8 +86,8 @@ jobs:
run: ./release-notes/generator.pl
- name: Install dependencies
run: |
sudo apt-get install -y clang-format-15
sudo apt-get install -y clang-format-20
- 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
run: ./travis/check-safe-wrappers.sh

View File

@ -96,8 +96,7 @@ int main(int argc, char *argv[]) {
{"follow", no_argument, 0, 'f'},
#endif
{"help", no_argument, 0, 'h'},
{0, 0, 0, 0}
};
{0, 0, 0, 0}};
#if !defined(__OpenBSD__)
char *options_string = "s:vfVh";

View File

@ -447,9 +447,7 @@
#define CIRCLEQ_HEAD_INITIALIZER(head) \
{ \
CIRCLEQ_END(&head) \
, CIRCLEQ_END(&head) \
}
CIRCLEQ_END(&head), CIRCLEQ_END(&head)}
#define CIRCLEQ_ENTRY(type) \
struct { \