Skip to content

Commit c95a063

Browse files
committed
Address comments
1 parent 3c455ce commit c95a063

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

.clangd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ CompileFlags:
44
Add: [-I.., -I../.., -I../../compat, -I../../vendor]
55
---
66
If:
7-
PathMatch: src/.*\.(c,h)
7+
PathMatch: src/.*\.(c|h)
88
CompileFlags:
99
Add: [-I.., -I../compat, -I../vendor]
1010
---

.github/workflows/format.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Clang Format Checker
2-
on: [push]
2+
on:
3+
push:
4+
pull_request:
5+
branches: [master]
36
jobs:
47
clang-format-checking:
58
runs-on: ubuntu-latest

src/Makefile.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
check-format:
22
find . -iname "*.c" -o -iname "*.h" | \
3-
xargs clang-format --dry-run --Werror
3+
xargs -- clang-format --dry-run --Werror
44

55
format:
66
find . -iname "*.c" -o -iname "*.h" | \
7-
xargs clang-format -i
7+
xargs -- clang-format -i
88

99
_lint:
1010
clang-tidy ${SRCS} -- ${CPPFLAGS} ${CFLAGS} -isystem ${TOP}/vendor

0 commit comments

Comments
 (0)