From: Otto Moerbeek Date: Tue, 19 Sep 2023 09:13:23 +0000 (+0200) Subject: Reformat and use specific NOLINT X-Git-Tag: rec-5.0.0-alpha2~52^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F13278%2Fhead;p=thirdparty%2Fpdns.git Reformat and use specific NOLINT --- diff --git a/pdns/recursordist/rec-taskqueue.hh b/pdns/recursordist/rec-taskqueue.hh index 73eedeeced..13658055c5 100644 --- a/pdns/recursordist/rec-taskqueue.hh +++ b/pdns/recursordist/rec-taskqueue.hh @@ -57,4 +57,3 @@ uint64_t getAlmostExpiredTasksRun(); uint64_t getAlmostExpiredTaskExceptions(); bool taskQTypeIsSupported(QType qtype); - diff --git a/pdns/recursordist/recpacketcache.hh b/pdns/recursordist/recpacketcache.hh index 5a8c23a606..22207068a9 100644 --- a/pdns/recursordist/recpacketcache.hh +++ b/pdns/recursordist/recpacketcache.hh @@ -105,8 +105,19 @@ private: struct Entry { Entry(DNSName&& qname, uint16_t qtype, uint16_t qclass, std::string&& packet, std::string&& query, bool tcp, - uint32_t qhash, time_t ttd, time_t now, uint32_t tag, vState vstate) : // NOLINT - d_name(std::move(qname)), d_packet(std::move(packet)), d_query(std::move(query)), d_ttd(ttd), d_creation(now), d_qhash(qhash), d_tag(tag), d_type(qtype), d_class(qclass), d_vstate(vstate), d_tcp(tcp) + // NOLINTNEXTLINE(bugprone-easily-swappable-parameters) + uint32_t qhash, time_t ttd, time_t now, uint32_t tag, vState vstate) : + d_name(std::move(qname)), + d_packet(std::move(packet)), + d_query(std::move(query)), + d_ttd(ttd), + d_creation(now), + d_qhash(qhash), + d_tag(tag), + d_type(qtype), + d_class(qclass), + d_vstate(vstate), + d_tcp(tcp) { }