mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
new: ci: Add LLVM 22
Merge branch 'mnowak/llvm-22' into 'main' See merge request isc-projects/bind9!11627
This commit is contained in:
commit
a14e37fff6
14 changed files with 28 additions and 26 deletions
|
|
@ -1554,3 +1554,5 @@ ebb5bd9c0f079de8970b538fe48e5f5c60ea7ee9
|
|||
d051e1e8f8eea1400191e0fd20641394b7d438be
|
||||
# Use ControlStatementsExceptControlMacros for SpaceBeforeParens
|
||||
42496f3f4a8802c0ba8033a1bcabc8bebf5b0087
|
||||
# Use clang-format-22 to update formatting
|
||||
239464f27643bf609e9c0ad79ab2d597ccbb2280
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ variables:
|
|||
BUILD_PARALLEL_JOBS: 6
|
||||
TEST_PARALLEL_JOBS: 4
|
||||
|
||||
CLANG_VERSION: 21
|
||||
CLANG_VERSION: 22
|
||||
CLANG: "clang-${CLANG_VERSION}"
|
||||
SCAN_BUILD: "scan-build-${CLANG_VERSION}"
|
||||
LLVM_SYMBOLIZER: "/usr/lib/llvm-${CLANG_VERSION}/bin/llvm-symbolizer"
|
||||
|
|
|
|||
|
|
@ -58,11 +58,11 @@
|
|||
|
||||
#define STATS_XML_VERSION_MAJOR "3"
|
||||
#define STATS_XML_VERSION_MINOR "14"
|
||||
#define STATS_XML_VERSION STATS_XML_VERSION_MAJOR "." STATS_XML_VERSION_MINOR
|
||||
#define STATS_XML_VERSION STATS_XML_VERSION_MAJOR "." STATS_XML_VERSION_MINOR
|
||||
|
||||
#define STATS_JSON_VERSION_MAJOR "1"
|
||||
#define STATS_JSON_VERSION_MINOR "8"
|
||||
#define STATS_JSON_VERSION STATS_JSON_VERSION_MAJOR "." STATS_JSON_VERSION_MINOR
|
||||
#define STATS_JSON_VERSION STATS_JSON_VERSION_MAJOR "." STATS_JSON_VERSION_MINOR
|
||||
|
||||
struct named_statschannel {
|
||||
/* Unlocked */
|
||||
|
|
|
|||
|
|
@ -12,9 +12,9 @@
|
|||
# LTO builds with clang
|
||||
|
||||
[binaries]
|
||||
ar = 'llvm-ar-21'
|
||||
c = 'clang-21'
|
||||
c_ld = 'lld-21'
|
||||
ar = 'llvm-ar-22'
|
||||
c = 'clang-22'
|
||||
c_ld = 'lld-22'
|
||||
|
||||
[project options]
|
||||
named-lto = 'thin'
|
||||
|
|
|
|||
|
|
@ -424,12 +424,12 @@ enum {
|
|||
*/
|
||||
#define FIND_WANTEVENT(fn) (((fn)->options & DNS_ADBFIND_WANTEVENT) != 0)
|
||||
#define FIND_WANTEMPTYEVENT(fn) (((fn)->options & DNS_ADBFIND_EMPTYEVENT) != 0)
|
||||
#define FIND_AVOIDFETCHES(fn) (((fn)->options & DNS_ADBFIND_AVOIDFETCHES) != 0)
|
||||
#define FIND_STARTATZONE(fn) (((fn)->options & DNS_ADBFIND_STARTATZONE) != 0)
|
||||
#define FIND_STATICSTUB(fn) (((fn)->options & DNS_ADBFIND_STATICSTUB) != 0)
|
||||
#define FIND_NOVALIDATE(fn) (((fn)->options & DNS_ADBFIND_NOVALIDATE) != 0)
|
||||
#define FIND_HAS_ADDRS(fn) (!ISC_LIST_EMPTY((fn)->list))
|
||||
#define FIND_NOFETCH(fn) (((fn)->options & DNS_ADBFIND_NOFETCH) != 0)
|
||||
#define FIND_AVOIDFETCHES(fn) (((fn)->options & DNS_ADBFIND_AVOIDFETCHES) != 0)
|
||||
#define FIND_STARTATZONE(fn) (((fn)->options & DNS_ADBFIND_STARTATZONE) != 0)
|
||||
#define FIND_STATICSTUB(fn) (((fn)->options & DNS_ADBFIND_STATICSTUB) != 0)
|
||||
#define FIND_NOVALIDATE(fn) (((fn)->options & DNS_ADBFIND_NOVALIDATE) != 0)
|
||||
#define FIND_HAS_ADDRS(fn) (!ISC_LIST_EMPTY((fn)->list))
|
||||
#define FIND_NOFETCH(fn) (((fn)->options & DNS_ADBFIND_NOFETCH) != 0)
|
||||
|
||||
#define ADBNAME_TYPE_MASK \
|
||||
(DNS_ADBFIND_STARTATZONE | DNS_ADBFIND_STATICSTUB | \
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ enum {
|
|||
#define DNS_EDE_MAX_ERRORS 3
|
||||
#define DNS_EDNS_MAX_OPTIONS DNS_OPT_COUNT + DNS_EDE_MAX_ERRORS
|
||||
|
||||
#define DNS_MESSAGE_REPLYPRESERVE (DNS_MESSAGEFLAG_RD | DNS_MESSAGEFLAG_CD)
|
||||
#define DNS_MESSAGE_REPLYPRESERVE (DNS_MESSAGEFLAG_RD | DNS_MESSAGEFLAG_CD)
|
||||
#define DNS_MESSAGEEXTFLAG_REPLYPRESERVE (DNS_MESSAGEEXTFLAG_DO)
|
||||
|
||||
#define DNS_MESSAGE_HEADERLEN 12 /*%< 6 uint16_t's */
|
||||
|
|
|
|||
|
|
@ -330,8 +330,8 @@ dns_sdlz_putrr_t dns_sdlz_putrr;
|
|||
*/
|
||||
|
||||
typedef isc_result_t
|
||||
dns_sdlz_putsoa_t(dns_sdlzlookup_t *lookup, const char *mname,
|
||||
const char *rname, uint32_t serial);
|
||||
dns_sdlz_putsoa_t(dns_sdlzlookup_t *lookup, const char *mname,
|
||||
const char *rname, uint32_t serial);
|
||||
dns_sdlz_putsoa_t dns_sdlz_putsoa;
|
||||
/*%<
|
||||
* This function may optionally be called from the 'authority'
|
||||
|
|
|
|||
|
|
@ -41,8 +41,8 @@ dns_time64_totext(int64_t t, isc_buffer_t *target) {
|
|||
/*
|
||||
* Warning. Do NOT use arguments with side effects with these macros.
|
||||
*/
|
||||
#define is_leap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0)
|
||||
#define year_secs(y) ((is_leap(y) ? 366 : 365) * 86400)
|
||||
#define is_leap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0)
|
||||
#define year_secs(y) ((is_leap(y) ? 366 : 365) * 86400)
|
||||
#define month_secs(m, y) ((days[m] + ((m == 1 && is_leap(y)) ? 1 : 0)) * 86400)
|
||||
|
||||
tm.tm_year = 70;
|
||||
|
|
|
|||
|
|
@ -588,7 +588,7 @@ typedef enum {
|
|||
DNS_ZONEFLG___MAX = UINT64_MAX, /* trick to make the ENUM 64-bit wide */
|
||||
} dns_zoneflg_t;
|
||||
|
||||
#define DNS_ZONE_OPTION(z, o) ((atomic_load_relaxed(&(z)->options) & (o)) != 0)
|
||||
#define DNS_ZONE_OPTION(z, o) ((atomic_load_relaxed(&(z)->options) & (o)) != 0)
|
||||
#define DNS_ZONE_SETOPTION(z, o) atomic_fetch_or(&(z)->options, (o))
|
||||
#define DNS_ZONE_CLROPTION(z, o) atomic_fetch_and(&(z)->options, ~(o))
|
||||
|
||||
|
|
|
|||
|
|
@ -21,10 +21,10 @@ STATIC_ASSERT(sizeof(struct __cds_wfcq_head) <= ISC_OS_CACHELINE_SIZE,
|
|||
typedef struct isc_queue {
|
||||
struct __cds_wfcq_head head;
|
||||
uint8_t __padding_head[ISC_OS_CACHELINE_SIZE -
|
||||
sizeof(struct __cds_wfcq_head)];
|
||||
sizeof(struct __cds_wfcq_head)];
|
||||
struct cds_wfcq_tail tail;
|
||||
uint8_t __padding_tail[ISC_OS_CACHELINE_SIZE -
|
||||
sizeof(struct __cds_wfcq_head)];
|
||||
sizeof(struct __cds_wfcq_head)];
|
||||
} isc_queue_t;
|
||||
|
||||
typedef struct cds_wfcq_node isc_queue_node_t;
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ struct isc_quota {
|
|||
struct {
|
||||
struct cds_wfcq_head head;
|
||||
uint8_t __padding[ISC_OS_CACHELINE_SIZE -
|
||||
sizeof(struct __cds_wfcq_head)];
|
||||
sizeof(struct __cds_wfcq_head)];
|
||||
struct cds_wfcq_tail tail;
|
||||
} jobs;
|
||||
ISC_LINK(isc_quota_t) link;
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ typedef atomic_uint_fast32_t isc_refcount_t;
|
|||
__attribute__((unused)); \
|
||||
stat void name##_detach(name##_t **ptrp) __attribute__((unused))
|
||||
|
||||
#define ISC_REFCOUNT_DECL(name) ISC__REFCOUNT_DECL(name, ISC_REFCOUNT_BLANK)
|
||||
#define ISC_REFCOUNT_DECL(name) ISC__REFCOUNT_DECL(name, ISC_REFCOUNT_BLANK)
|
||||
#define ISC_REFCOUNT_STATIC_DECL(name) ISC__REFCOUNT_DECL(name, static inline)
|
||||
|
||||
#define ISC__REFCOUNT_IMPL(name, destroy, stat) \
|
||||
|
|
|
|||
|
|
@ -256,8 +256,8 @@ struct ns_client {
|
|||
#define NS_CLIENTATTR_WANTNSID 0x000020 /*%< include nameserver ID */
|
||||
#define NS_CLIENTATTR_BADCOOKIE \
|
||||
0x000040 /*%< Presented cookie is bad/out-of-date */
|
||||
#define NS_CLIENTATTR_WANTRC 0x000080 /*%< include Report-Channel */
|
||||
#define NS_CLIENTATTR_WANTAD 0x000100 /*%< want AD in response if possible */
|
||||
#define NS_CLIENTATTR_WANTRC 0x000080 /*%< include Report-Channel */
|
||||
#define NS_CLIENTATTR_WANTAD 0x000100 /*%< want AD in response if possible */
|
||||
#define NS_CLIENTATTR_WANTCOOKIE 0x000200 /*%< return a COOKIE */
|
||||
#define NS_CLIENTATTR_HAVECOOKIE 0x000400 /*%< has a valid COOKIE */
|
||||
#define NS_CLIENTATTR_WANTEXPIRE 0x000800 /*%< return seconds to expire */
|
||||
|
|
|
|||
|
|
@ -31,8 +31,8 @@
|
|||
|
||||
#include <tests/isc.h>
|
||||
|
||||
#define NAME "internal"
|
||||
#define SHA "3bed2cb3a3acf7b6a8ef408420cc682d5520e26976d354254f528c965612054f"
|
||||
#define NAME "internal"
|
||||
#define SHA "3bed2cb3a3acf7b6a8ef408420cc682d5520e26976d354254f528c965612054f"
|
||||
#define TRUNC_SHA "3bed2cb3a3acf7b6"
|
||||
|
||||
#define BAD1 "in/internal"
|
||||
|
|
|
|||
Loading…
Reference in a new issue