Wireshark-commits: [Wireshark-commits] master e9a21e9: cppcheck: Bail if "-l <n>" or "-o" don't fin
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=e9a21e9f41bea590a71611c0e9f4c5402a0dc54e
Submitter: "Martin Mathieson <martin.r.mathieson@xxxxxxxxxxxxxx>"
Changed: branch: master
Repository: wireshark
Commits:
e9a21e9 by Gerald Combs (gerald@xxxxxxxxxxxxx):
cppcheck: Bail if "-l <n>" or "-o" don't find any files.
If we've been passed "-l <n>" and the last <n> commits don't match any C
or C++ files or we've been passed "-o" and no files have been changed,
simply exit instead of testing the entire code base. We use "cppcheck.sh
-l <n>" in our CI system and the former behavior is much more useful
(and faster) than the latter.
Change-Id: I1127eabefa854d68f80b0a2dfd05e6895658abc0
Reviewed-on: https://code.wireshark.org/review/37773
Reviewed-by: Gerald Combs <gerald@xxxxxxxxxxxxx>
Petri-Dish: Gerald Combs <gerald@xxxxxxxxxxxxx>
Reviewed-by: Martin Mathieson <martin.r.mathieson@xxxxxxxxxxxxxx>
Actions performed:
from 3c37494 USB HID: fix memory leak when saving report descriptors
add e9a21e9 cppcheck: Bail if "-l <n>" or "-o" don't find any files.
Summary of changes:
tools/cppcheck/cppcheck.sh | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)