mirror of
https://passt.top/passt
synced 2025-05-18 07:35:35 +02:00
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 <sbrivio@redhat.com>
This commit is contained in:
parent
7f1e7019cb
commit
12cfa6444c
14 changed files with 172 additions and 73 deletions
test/build
18
test/build/static_checkers
Normal file
18
test/build/static_checkers
Normal file
|
@ -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 <sbrivio@redhat.com>
|
||||
|
||||
htools clang-tidy
|
||||
|
||||
test Run clang-tidy
|
||||
hout RET make clang-tidy; echo $?
|
||||
check [ __RET__ -eq 0 ]
|
Loading…
Add table
Add a link
Reference in a new issue