clang-tidy: add more missing parentheses in macro values

Reported when running `HeaderFilterRegex: '.*'` in CI.

Also replace an underscored symbol with a regular one in macro
definition.

Cherry-picked from #20720

Closes #20721
This commit is contained in:
Viktor Szakats 2026-02-25 15:06:27 +01:00
parent 65f9426170
commit 3b9d8412c0
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -78,7 +78,7 @@ struct cf_quic_ctx {
};
#define H3_STREAM_CTX(ctx, data) \
(data ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL)
((data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL)
CURLcode vquic_ctx_init(struct Curl_easy *data,
struct cf_quic_ctx *qctx);

View File

@ -50,8 +50,8 @@ struct dynbuf;
#ifdef USE_ECH
#include "curlx/base64.h"
#define ECH_ENABLED(__data__) \
(__data__->set.tls_ech && !(__data__->set.tls_ech & CURLECH_DISABLE))
#define ECH_ENABLED(data) \
((data)->set.tls_ech && !((data)->set.tls_ech & CURLECH_DISABLE))
#endif /* USE_ECH */
#define ALPN_ACCEPTED "ALPN: server accepted "