Skip to content

Commit

Permalink
Don't warn about padding issues.
Browse files Browse the repository at this point in the history
They break automatically initialized structs we can not change easily.
  • Loading branch information
Rot127 committed May 11, 2024
1 parent 06033e0 commit d8680ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion run-clang-tidy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ fi

BUILD_PATH="$1"

clang-tidy $(find ./arch ./*.c -type f -iregex ".*\.[c]") -p "$BUILD_PATH" -checks=clang-analyzer-*,-clang-analyzer-cplusplus* > ct-warnings.txt
check_list="clang-analyzer-*,-clang-analyzer-cplusplus*,-clang-analyzer-optin.performance.Padding"

clang-tidy $(find ./arch ./*.c -type f -iregex ".*\.[c]") -p "$BUILD_PATH" -checks="$check_list" > ct-warnings.txt
if [ $? -ne 0 ]; then
echo "clang-tidy failed"
exit 1
Expand Down

0 comments on commit d8680ae

Please sign in to comment.