summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.se>2022-12-19 20:08:53 +0000
committerThomas Habets <thomas@habets.se>2022-12-19 20:08:53 +0000
commitfa1a14af2e23f13a756b551a223fb65a1b753818 (patch)
tree2879eba374af1965c3a54345c3db6eb011d8fa51 /extra
parent797b7357f95467998b6b30cc6bc43ec86da354b5 (diff)
downloadarping-fa1a14af2e23f13a756b551a223fb65a1b753818.tar.gz
Fix clang-tidy complaints. No actual changes.HEADarping-2.x
Diffstat (limited to 'extra')
-rwxr-xr-xextra/tidy.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/extra/tidy.sh b/extra/tidy.sh
new file mode 100755
index 0000000..07b9558
--- /dev/null
+++ b/extra/tidy.sh
@@ -0,0 +1,23 @@
+#!/usr/bin/env bash
+
+set -e
+
+# src/findif_bsdroute.c
+# src/windows.c
+# src/findif_linux.c
+# src/findif_sysctl.c
+for f in src/arping.c \
+ src/arping_main.c \
+ src/arping_test.c \
+ src/cast.c \
+ src/findif_getifaddrs.c \
+ src/findif_other.c \
+ src/fuzz_pingip.c \
+ src/fuzz_pingmac.c \
+ src/mock_libnet.c \
+ src/mock_libpcap.c \
+ src/unix.c; do
+ echo "========================================================="
+ echo "Checking ${f?}…"
+ clang-tidy "${f?}" -- -DHAVE_CONFIG_H -I. -I.. -D_DEFAULT_SOURCE=1 -std=c99
+done