another clang-format for github

This commit is contained in:
SimonFJ20 2026-03-20 13:39:49 +01:00
parent d164078b56
commit d983d74bfa
3 changed files with 17 additions and 5 deletions

View File

@ -8,10 +8,7 @@ AllowShortFunctionsOnASingleLine: None
BinPackArguments: false BinPackArguments: false
BinPackLongBracedList: false BinPackLongBracedList: false
BinPackParameters: OnePerLine
# replace this when when github actions/ubuntu has a new enough LLVM version
# BinPackParameters: OnePerLine
BinPackParameters: true
AllowAllArgumentsOnNextLine: true AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true AllowAllParametersOfDeclarationOnNextLine: true

View File

@ -0,0 +1,15 @@
BasedOnStyle: WebKit
IndentWidth: 4
ColumnLimit: 80
IndentCaseLabels: true
InsertNewlineAtEOF: true
AllowShortFunctionsOnASingleLine: None
BinPackArguments: false
BinPackParameters: true
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true

View File

@ -38,7 +38,7 @@ target=$(build_dir)/backend
all: $(target) all: $(target)
check: check:
clang-format --dry-run --Werror src/* clang-format --dry-run --Werror -style=file:.clang-format.github src/*
$(target): $(sources:%.c=$(obj_dir)/%.o) $(target): $(sources:%.c=$(obj_dir)/%.o)
$(LD) -o $@ $(CFLAGS) $(LDFLAGS) $^ $(LD) -o $@ $(CFLAGS) $(LDFLAGS) $^