Skip to content

Commit

Permalink
Add ignore list for clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
egecetin committed Nov 6, 2024
1 parent fcbac8c commit dc3783c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ci/clang-tidy-all.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/sh
set -e

IGNORE_LIST=".*dirent.* .*DpdkDevice* .*KniDevice* .*MBufRawPacket* .*PfRingDevice* .*RemoteDevice* .*XdpDevice* .*WinPcap*"

SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "${SCRIPT}")
ROOTPATH=$(realpath "${SCRIPTPATH}"/..)
Expand Down Expand Up @@ -30,6 +32,12 @@ fi

# Process each file
echo "$files" | while IFS= read -r file; do
for ignore in $IGNORE_LIST; do
if echo "$file" | grep -qE "$ignore"; then
echo "Ignoring: $file"
continue 2
fi
done
echo "Checking: $file"
clang-tidy "$file" -p $BUILD_DIR --fix --checks=modernize-use-nullptr,modernize-use-override,performance-unnecessary-value-param
done

0 comments on commit dc3783c

Please sign in to comment.