]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
Silence Clang-Tidy
authorOto Šťáva <oto.stava@nic.cz>
Mon, 29 Apr 2024 13:09:01 +0000 (15:09 +0200)
committerOto Šťáva <oto.stava@nic.cz>
Mon, 13 May 2024 13:09:21 +0000 (15:09 +0200)
commitc1bdcd06cb20948971c0110e6f28a4254828ea23
tree8aa044a01c9ea79558f9f30a6cbce0b45f396541
parentd6176253ebb423daff0d627e5f534d7d918a4441
Silence Clang-Tidy

This commit makes lots of changes to the C code to appease the
Clang-Tidy linter. Some of the less obvious ones are due to C's weird
semantics regarding handling of numeric literals.

We also disable a bunch of the detections because they are
super-pedantic, arguably useless, or we have our own unwritten coding
style rules that solve the issues.
34 files changed:
.clang-tidy
daemon/bindings/net.c
daemon/engine.c
daemon/io.c
daemon/main.c
daemon/proxyv2.c
daemon/session.c
daemon/tls.c
daemon/tls.h
daemon/tls_ephemeral_credentials.c
daemon/tls_session_ticket-srv.c
daemon/udp_queue.c
daemon/worker.c
daemon/zimport.c
lib/cache/peek.c
lib/dnssec.c
lib/generic/array.h
lib/generic/lru.h
lib/generic/queue.c
lib/generic/queue.h
lib/generic/trie.c
lib/layer/validate.c
lib/log.c
lib/resolve.c
lib/selection.c
lib/utils.c
modules/dnstap/dnstap.c
modules/hints/hints.c
modules/stats/stats.c
utils/cache_gc/categories.c
utils/cache_gc/db.c
utils/cache_gc/kr_cache_gc.c
utils/cache_gc/main.c
utils/client/.clang-tidy [new file with mode: 0644]