curl/lib
Viktor Szakats df6014894b
clang-tidy: enable more checks, fix fallouts
- enable three checks:
  - bugprone-invalid-enum-default-initialization
  - bugprone-sizeof-expression
  - readability-inconsistent-declaration-parameter-name (strict)
- fix remaining discrepancies with arg names in prototypes
  and implementation, in strict mode.
- document reason for some checks tested but not enabled.

Closes #20794
2026-04-14 02:20:16 +02:00
..
curlx clang-tidy: enable more checks, fix fallouts 2026-04-14 02:20:16 +02:00
vauth clang-tidy: enable more checks, fix fallouts 2026-04-14 02:20:16 +02:00
vquic vquic: fix variable name in fallback code 2026-04-10 12:10:23 +02:00
vssh tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
vtls clang-tidy: enable more checks, fix fallouts 2026-04-14 02:20:16 +02:00
.gitignore
altsvc.c altsvc: cap the list at 5,000 entries 2026-04-01 12:05:47 +02:00
altsvc.h altsvc: cap the list at 5,000 entries 2026-04-01 12:05:47 +02:00
amigaos.c
amigaos.h
arpa_telnet.h
asyn-ares.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
asyn-base.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
asyn-thrdd.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
asyn.h tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
bufq.c
bufq.h
bufref.c
bufref.h
cf-dns.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
cf-dns.h tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
cf-h1-proxy.c lib: move request specific allocations to the request struct 2026-04-13 23:23:34 +02:00
cf-h1-proxy.h
cf-h2-proxy.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
cf-h2-proxy.h
cf-haproxy.c cfilters: CF_TYPE_SETUP connection filter 2026-04-09 14:10:28 +02:00
cf-haproxy.h
cf-https-connect.c cfilters: CF_TYPE_SETUP connection filter 2026-04-09 14:10:28 +02:00
cf-https-connect.h cf-dns: connection filter for DNS queries 2026-03-30 13:28:38 +02:00
cf-ip-happy.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
cf-ip-happy.h cf-dns: connection filter for DNS queries 2026-03-30 13:28:38 +02:00
cf-socket.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
cf-socket.h cf-dns: connection filter for DNS queries 2026-03-30 13:28:38 +02:00
cfilters.c getinfo: repair CURLINFO_TLS_SESSION 2026-04-11 16:56:22 +02:00
cfilters.h getinfo: repair CURLINFO_TLS_SESSION 2026-04-11 16:56:22 +02:00
CMakeLists.txt cmake: use AIX built-in variable (with CMake 4.0+) 2026-03-30 13:05:17 +02:00
config-mac.h src: drop detecting and redefining system symbol ftruncate 2026-03-30 13:46:14 +02:00
config-os400.h tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
config-riscos.h src: drop detecting and redefining system symbol ftruncate 2026-03-30 13:46:14 +02:00
config-win32.h tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
conncache.c lib: reserve 'result' for CURLcode, even more 2026-04-07 07:48:58 +02:00
conncache.h lib: reserve 'result' for CURLcode 2026-04-06 23:12:06 +02:00
connect.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
connect.h cf-dns: connection filter for DNS queries 2026-03-30 13:28:38 +02:00
content_encoding.c
content_encoding.h
cookie.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
cookie.h tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
cshutdn.c
cshutdn.h
curl_addrinfo.c cf-dns: connection filter for DNS queries 2026-03-30 13:28:38 +02:00
curl_addrinfo.h cf-dns: connection filter for DNS queries 2026-03-30 13:28:38 +02:00
curl_config-cmake.h.in curl_ntlm_core: use wolfCrypt DES API with wolfSSL 2026-04-07 11:58:30 +02:00
curl_ctype.h tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
curl_endian.c
curl_endian.h
curl_fnmatch.c
curl_fnmatch.h
curl_fopen.c fopen: for temp files, inherit permissions only for owner 2026-03-30 18:39:12 +02:00
curl_fopen.h
curl_get_line.c
curl_get_line.h
curl_gethostname.c
curl_gethostname.h
curl_gssapi.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
curl_gssapi.h clang-tidy: enable more checks, fix fallouts 2026-04-14 02:20:16 +02:00
curl_hmac.h lib: accept larger input to md5/hmac/sha256/sha512 functions 2026-03-31 17:19:56 +02:00
curl_ldap.h
curl_md4.h
curl_md5.h lib: accept larger input to md5/hmac/sha256/sha512 functions 2026-03-31 17:19:56 +02:00
curl_memrchr.c
curl_memrchr.h
curl_ntlm_core.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
curl_ntlm_core.h
curl_printf.h
curl_range.c
curl_range.h
curl_sasl.c
curl_sasl.h
curl_setup.h clang-tidy: enable more checks, fix fallouts 2026-04-14 02:20:16 +02:00
curl_sha256.h lib: accept larger input to md5/hmac/sha256/sha512 functions 2026-03-31 17:19:56 +02:00
curl_sha512_256.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
curl_sha512_256.h
curl_share.c share: do bitshifts after the type is checked to be valid 2026-04-05 16:07:54 +02:00
curl_share.h
curl_sspi.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
curl_sspi.h
curl_threads.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
curl_threads.h tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
curl_trc.c lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
curl_trc.h lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
cw-out.c
cw-out.h
cw-pause.c
cw-pause.h
dict.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
dict.h
dllmain.c
dnscache.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
dnscache.h clang-tidy: enable more checks, fix fallouts 2026-04-14 02:20:16 +02:00
doh.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
doh.h clang-tidy: enable more checks, fix fallouts 2026-04-14 02:20:16 +02:00
dynhds.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
dynhds.h
easy.c clang-tidy: enable more checks, fix fallouts 2026-04-14 02:20:16 +02:00
easy_lock.h tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
easygetopt.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
easyif.h
easyoptions.c
easyoptions.h
escape.c clang-tidy: enable more checks, fix fallouts 2026-04-14 02:20:16 +02:00
escape.h
fake_addrinfo.c lib: reserve 'result' for CURLcode 2026-04-06 23:12:06 +02:00
fake_addrinfo.h
file.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
file.h
fileinfo.c
fileinfo.h
formdata.c lib: reserve 'result' for CURLcode, even more 2026-04-07 07:48:58 +02:00
formdata.h
ftp-int.h
ftp.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
ftp.h
ftplistparser.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
ftplistparser.h
functypes.h
getenv.c
getinfo.c getinfo: repair CURLINFO_TLS_SESSION 2026-04-11 16:56:22 +02:00
getinfo.h
gopher.c
gopher.h
hash.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
hash.h tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
headers.c clang-tidy: enable more checks, fix fallouts 2026-04-14 02:20:16 +02:00
headers.h
hmac.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
hostip.c clang-tidy: enable more checks, fix fallouts 2026-04-14 02:20:16 +02:00
hostip.h tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
hostip4.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
hostip6.c lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
hsts.c hsts: make the HSTS read callback handle name dupes 2026-04-02 18:01:20 +02:00
hsts.h hsts: accept 10K entries in the list 2026-04-02 10:22:35 +02:00
http.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
http.h tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
http1.c
http1.h
http2.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
http2.h http: refactor http_on_response into sub functions 2026-03-31 23:53:45 +02:00
http_aws_sigv4.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
http_aws_sigv4.h
http_chunks.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
http_chunks.h
http_digest.c lib: move request specific allocations to the request struct 2026-04-13 23:23:34 +02:00
http_digest.h
http_negotiate.c lib: move request specific allocations to the request struct 2026-04-13 23:23:34 +02:00
http_negotiate.h
http_ntlm.c lib: move request specific allocations to the request struct 2026-04-13 23:23:34 +02:00
http_ntlm.h
http_proxy.c lib: move request specific allocations to the request struct 2026-04-13 23:23:34 +02:00
http_proxy.h
httpsrr.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
httpsrr.h tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
idn.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
idn.h
if2ip.c
if2ip.h
imap.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
imap.h
ldap.c clang-tidy: enable more checks, fix fallouts 2026-04-14 02:20:16 +02:00
libcurl.def
libcurl.rc
libcurl.vers.in
llist.c
llist.h
macos.c
macos.h
Makefile.am Makefile.am: replace stray := with = [ci skip] 2026-04-06 02:52:08 +02:00
Makefile.inc cf-dns: connection filter for DNS queries 2026-03-30 13:28:38 +02:00
Makefile.soname
md4.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
md5.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
memdebug.c lib: add thread pool and queue 2026-03-23 23:03:58 +01:00
mime.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
mime.h
mprintf.c clang-tidy: enable more checks, fix fallouts 2026-04-14 02:20:16 +02:00
mqtt.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
mqtt.h
multi.c clang-tidy: enable more checks, fix fallouts 2026-04-14 02:20:16 +02:00
multi_ev.c
multi_ev.h
multi_ntfy.c
multi_ntfy.h
multihandle.h lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
multiif.h
netrc.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
netrc.h netrc: remove unused parsenetrc() macro for netrc-disabled 2026-03-23 10:19:08 +01:00
noproxy.c
noproxy.h
openldap.c
optiontable.pl
parsedate.c parsedate: bsearch the time zones 2026-04-08 12:00:59 +02:00
parsedate.h
pingpong.c
pingpong.h
pop3.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
pop3.h
progress.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
progress.h
protocol.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
protocol.h
psl.c
psl.h
rand.c
rand.h clang-tidy: enable more checks, fix fallouts 2026-04-14 02:20:16 +02:00
ratelimit.c ratelimit: reset on start 2026-03-24 16:25:53 +01:00
ratelimit.h ratelimit: reset on start 2026-03-24 16:25:53 +01:00
request.c lib: move request specific allocations to the request struct 2026-04-13 23:23:34 +02:00
request.h tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
rtsp.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
rtsp.h
select.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
select.h tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
sendf.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
sendf.h
setopt.c clang-tidy: enable more checks, fix fallouts 2026-04-14 02:20:16 +02:00
setopt.h
setup-os400.h tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
setup-vms.h
setup-win32.h
sha256.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
sigpipe.h
slist.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
slist.h
smb.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
smb.h lib: make SMB support opt-in 2026-03-22 11:55:39 +01:00
smtp.c lib: reserve 'result' for CURLcode, even more 2026-04-07 07:48:58 +02:00
smtp.h
sockaddr.h
socketpair.c
socketpair.h tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
socks.c lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
socks.h
socks_gssapi.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
socks_sspi.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
splay.c
splay.h
strcase.c
strcase.h
strequal.c
strerror.c
strerror.h
system_win32.c
system_win32.h
telnet.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
telnet.h
tftp.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
tftp.h
thrdpool.c lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
thrdpool.h lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
thrdqueue.c lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
thrdqueue.h lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
transfer.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
transfer.h
uint-bset.c
uint-bset.h
uint-hash.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
uint-hash.h
uint-spbset.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
uint-spbset.h
uint-table.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
uint-table.h
url.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
url.h tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
urlapi-int.h tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
urlapi.c lib: reserve 'result' for CURLcode, even more 2026-04-07 07:48:58 +02:00
urldata.h tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
version.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
ws.c clang-tidy: enable more checks, fix fallouts 2026-04-14 02:20:16 +02:00
ws.h