From 12cfa6444cd239dbc04391027ad3161f53b6901c Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Wed, 20 Oct 2021 00:05:11 +0200 Subject: passt: Add clang-tidy Makefile target and test, take care of warnings Most are just about style and form, but a few were actually serious mistakes (NDP-related). Signed-off-by: Stefano Brivio --- test/build/static_checkers | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/build/static_checkers (limited to 'test/build/static_checkers') diff --git a/test/build/static_checkers b/test/build/static_checkers new file mode 100644 index 0000000..6e080b4 --- /dev/null +++ b/test/build/static_checkers @@ -0,0 +1,18 @@ +# SPDX-License-Identifier: AGPL-3.0-or-later +# +# PASST - Plug A Simple Socket Transport +# for qemu/UNIX domain socket mode +# +# PASTA - Pack A Subtle Tap Abstraction +# for network namespace/tap device mode +# +# test/build/clang_tidy - Run source through clang-tidy(1) linter +# +# Copyright (c) 2021 Red Hat GmbH +# Author: Stefano Brivio + +htools clang-tidy + +test Run clang-tidy +hout RET make clang-tidy; echo $? +check [ __RET__ -eq 0 ] -- cgit v1.2.3