From 4e07bc839736bbf93a37e2db12258ec4149fa3b0 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Mon, 14 Sep 2026 18:00:15 +0300 Subject: [PATCH] Extended clang-tidy ban to Qt helpers wrapping std functions. --- .clang-tidy | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.clang-tidy b/.clang-tidy index a95105d40f..a9c6cbb835 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -6,7 +6,30 @@ CheckOptions: ^::qMin$,std::min,; ^::qMax$,std::max,; ^::qAbs$,std::abs,; - ^::qBound$,std::clamp,orders arguments as (low, value, high) + ^::qBound$,std::clamp,orders arguments as (low, value, high); + ^::qSwap$,std::swap,; + ^::qMakePair$,std::make_pair,; + ^::qExchange$,std::exchange,; + ^::qAsConst$,std::as_const,; + ^::qFabs$,std::fabs,; + ^::qSin$,std::sin,; + ^::qCos$,std::cos,; + ^::qTan$,std::tan,; + ^::qAcos$,std::acos,; + ^::qAsin$,std::asin,; + ^::qAtan$,std::atan,; + ^::qAtan2$,std::atan2,; + ^::qSqrt$,std::sqrt,; + ^::qLn$,std::log,; + ^::qExp$,std::exp,; + ^::qPow$,std::pow,; + ^::qHypot$,std::hypot,; + ^::qIsNaN$,std::isnan,; + ^::qIsInf$,std::isinf,; + ^::qIsFinite$,std::isfinite,; + ^::qPopulationCount$,std::popcount,; + ^::qCountLeadingZeroBits$,std::countl_zero,; + ^::qCountTrailingZeroBits$,std::countr_zero, # Header findings repeat per translation unit, and submodules are not ours. HeaderFilterRegex: ''