From: Otto Moerbeek Date: Tue, 16 May 2023 11:14:37 +0000 (+0200) Subject: delint updateCacheFromRecords X-Git-Tag: rec-4.9.0-beta1~2^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d53850d20a0723662f722ca96b7ff73adb2bf954;p=thirdparty%2Fpdns.git delint updateCacheFromRecords --- diff --git a/.clang-tidy.full b/.clang-tidy.full index bf8c8c8eca..f6ba38ee2e 100644 --- a/.clang-tidy.full +++ b/.clang-tidy.full @@ -113,7 +113,7 @@ CheckOptions: - key: readability-function-size.LineThreshold value: '4294967295' - key: bugprone-easily-swappable-parameters.MinimumLength - value: '2' + value: '4' - key: portability-simd-intrinsics.Suggest value: 'false' - key: cppcoreguidelines-pro-bounds-constant-array-index.GslHeader diff --git a/pdns/recursordist/syncres.cc b/pdns/recursordist/syncres.cc index e797035f53..d8f2bbf34f 100644 --- a/pdns/recursordist/syncres.cc +++ b/pdns/recursordist/syncres.cc @@ -4269,7 +4269,7 @@ void SyncRes::rememberParentSetIfNeeded(const DNSName& domain, const vector ednsmask, vState& state, bool& needWildcardProof, bool& gatherWildcardProof, unsigned int& wildcardLabelsCount, bool rdQuery, const ComboAddress& remoteIP) // NOLINT(readability-function-cognitive-complexity) +RCode::rcodes_ SyncRes::updateCacheFromRecords(unsigned int depth, const string& prefix, LWResult& lwr, const DNSName& qname, const QType qtype, const DNSName& auth, bool wasForwarded, const boost::optional& ednsmask, vState& state, bool& needWildcardProof, bool& gatherWildcardProof, unsigned int& wildcardLabelsCount, bool rdQuery, const ComboAddress& remoteIP) // NOLINT(readability-function-cognitive-complexity) { bool wasForwardRecurse = wasForwarded && rdQuery; tcache_t tcache; diff --git a/pdns/recursordist/syncres.hh b/pdns/recursordist/syncres.hh index 445482b952..8690578e4b 100644 --- a/pdns/recursordist/syncres.hh +++ b/pdns/recursordist/syncres.hh @@ -644,7 +644,7 @@ private: This is unfortunately needed to deal with very crappy so-called DNS servers */ void fixupAnswer(const std::string& prefix, LWResult& lwr, const DNSName& qname, const QType qtype, const DNSName& auth, bool wasForwarded, bool rdQuery); void rememberParentSetIfNeeded(const DNSName& domain, const vector& newRecords, unsigned int depth, const string& prefix); - RCode::rcodes_ updateCacheFromRecords(unsigned int depth, const string& prefix, LWResult& lwr, const DNSName& qname, const QType qtype, const DNSName& auth, bool wasForwarded, const boost::optional, vState& state, bool& needWildcardProof, bool& gatherWildcardProof, unsigned int& wildcardLabelsCount, bool sendRDQuery, const ComboAddress& remoteIP); + RCode::rcodes_ updateCacheFromRecords(unsigned int depth, const string& prefix, LWResult& lwr, const DNSName& qname, const QType qtype, const DNSName& auth, bool wasForwarded, const boost::optional&, vState& state, bool& needWildcardProof, bool& gatherWildcardProof, unsigned int& wildcardLabelsCount, bool sendRDQuery, const ComboAddress& remoteIP); bool processRecords(const std::string& prefix, const DNSName& qname, const QType qtype, const DNSName& auth, LWResult& lwr, const bool sendRDQuery, vector& ret, set& nsset, DNSName& newtarget, DNSName& newauth, bool& realreferral, bool& negindic, vState& state, const bool needWildcardProof, const bool gatherwildcardProof, const unsigned int wildcardLabelsCount, int& rcode, bool& negIndicHasSignatures, unsigned int depth); bool doSpecialNamesResolve(const DNSName& qname, QType qtype, const QClass qclass, vector& ret);