b9e8fee0e7
Launch clang-check -analyze for each file... Change-Id: Ic4132d563ccaa5d375f27d08366ba6fc052f095c Reviewed-on: https://code.wireshark.org/review/30482 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
20 lines
480 B
Python
Executable file
20 lines
480 B
Python
Executable file
#!/bin/sh
|
|
# Copyright 2018, Alexis La Goutte (See AUTHORS file)
|
|
#
|
|
# Verifies last commit with clang-check (like scan-build) for Petri Dish
|
|
#
|
|
# Wireshark - Network traffic analyzer
|
|
# By Gerald Combs <gerald@wireshark.org>
|
|
# Copyright 1998 Gerald Combs
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
#
|
|
|
|
COMMIT_FILES=$( git diff-index --cached --name-status HEAD^ | grep -v "^D" | cut -f2 | grep "\\.c$\|cpp$" )
|
|
|
|
for FILE in $COMMIT_FILES; do
|
|
|
|
clang-check -analyze ../$FILE
|
|
|
|
done
|