]> git.ipfire.org Git - thirdparty/curl.git/commit
clang-tidy: sync argument names in prototype and definition
authorViktor Szakats <commit@vsz.me>
Tue, 17 Feb 2026 23:55:27 +0000 (00:55 +0100)
committerViktor Szakats <commit@vsz.me>
Thu, 19 Feb 2026 11:44:37 +0000 (12:44 +0100)
commitc878160e9c1f7366e64299aa02540d5495c3df9c
tree94b546b3a4de9c6297db3a20a3c1b6cf48f32d1a
parent7c01bb23bc8454427149f31f4dae0c60c2991c15
clang-tidy: sync argument names in prototype and definition

Discovered with clang-tidy checker
`readability-inconsistent-declaration-parameter-name`.

Also:
- do not enforce the above because of inconsistencies still present
  between public API prototypes and definitions. (Also betwen man page
  protos, and man page examples, and other parts of the code, e.g.
  `easy` vs `curl` vs `d` vs `handle`) Perhaps subject for a future
  effort:
  https://github.com/curl/curl/actions/runs/22166472728/job/64094691653
- enable and fix `readability-named-parameter` where missing.

Refs:
https://clang.llvm.org/extra/clang-tidy/checks/readability/inconsistent-declaration-parameter-name.html
https://clang.llvm.org/extra/clang-tidy/checks/readability/named-parameter.html

Closes #20624
64 files changed:
.clang-tidy.yml
lib/altsvc.c
lib/altsvc.h
lib/asyn-ares.c
lib/asyn-thrdd.c
lib/asyn.h
lib/cf-h1-proxy.h
lib/cfilters.c
lib/cfilters.h
lib/conncache.h
lib/connect.h
lib/cookie.h
lib/cshutdn.h
lib/curl_addrinfo.c
lib/curl_hmac.h
lib/curl_md5.h
lib/curl_sha256.h
lib/curlx/strdup.h
lib/curlx/strparse.h
lib/curlx/warnless.h
lib/doh.h
lib/ftp.c
lib/ftplistparser.h
lib/hmac.c
lib/hostip.c
lib/hostip.h
lib/hsts.h
lib/http2.c
lib/http2.h
lib/idn.h
lib/llist.h
lib/mime.c
lib/multi.c
lib/multiif.h
lib/netrc.c
lib/netrc.h
lib/parsedate.c
lib/parsedate.h
lib/request.h
lib/select.h
lib/sendf.c
lib/sendf.h
lib/setopt.h
lib/sha256.c
lib/splay.h
lib/strcase.h
lib/strequal.c
lib/uint-table.h
lib/url.h
lib/vauth/cleartext.c
lib/vauth/vauth.h
lib/vssh/vssh.c
lib/vtls/hostcheck.h
lib/vtls/openssl.c
lib/vtls/openssl.h
lib/vtls/vtls.c
lib/vtls/vtls.h
lib/vtls/vtls_scache.c
lib/ws.c
lib/ws.h
src/tool_easysrc.h
src/tool_getpass.c
src/tool_paramhlp.h
tests/libtest/first.h