curl/tests/server
Viktor Szakats 725c5609ae
clang-tidy: avoid/silence bugprone-not-null-terminated-result
Prefer `sizeof()` over `strlen()`, static const variables over macros.
Add a couple of `NOLINT`s to silence false positives.

Also sync similar code patterns between libtests.

Cherry-picked from #20720

Closes #20723
2026-02-25 22:11:05 +01:00
..
.checksrc build: tidy up and dedupe strdup functions 2026-02-03 14:02:30 +01:00
.gitignore tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
CMakeLists.txt cmake: add native clang-tidy support for tests, with concatenated sources 2026-02-25 17:28:35 +01:00
dnsd.c tidy-up: move literals to right-side of if expressions (where missing) 2026-02-07 16:41:51 +01:00
first.c build: use more const 2026-02-02 12:32:49 +01:00
first.h clang-tidy: check bugprone-macro-parentheses, fix fallouts 2026-02-22 00:58:04 +01:00
getpart.c build: use more const 2026-02-02 12:32:49 +01:00
Makefile.am localtime: detect thread-safe alternatives and use them 2025-12-16 14:30:06 +01:00
Makefile.inc curlx: curlx_strcopy() instead of strcpy() 2025-12-22 23:01:05 +01:00
mqttd.c clang-tidy: avoid/silence bugprone-not-null-terminated-result 2026-02-25 22:11:05 +01:00
resolve.c build: use more const 2026-02-02 12:32:49 +01:00
rtspd.c clang-tidy: avoid/silence bugprone-not-null-terminated-result 2026-02-25 22:11:05 +01:00
sockfilt.c tests/server/sockfilt: check for NULL tv to silence clang-tidy 2026-02-20 12:08:52 +01:00
socksd.c tidy-up: miscellaneous 2026-02-25 14:44:56 +01:00
sws.c clang-tidy: enable readability-math-missing-parentheses, adjust code 2026-02-23 18:57:40 +01:00
tftpd.c clang-tidy: enable bugprone-signed-char-misuse, fix fallouts 2026-02-25 14:44:56 +01:00
util.c tests/server: silence clang-tidy warning 2026-02-22 22:32:13 +01:00