mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-20 08:03:45 +08:00
Extended clang-tidy ban to Qt helpers wrapping std functions.
This commit is contained in:
25
.clang-tidy
25
.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: ''
|
||||
|
||||
Reference in New Issue
Block a user