Added clang-tidy ban of qMin, qMax, qAbs and qBound.

This commit is contained in:
23rd
2026-09-14 16:22:17 +03:00
parent 346d0f3a85
commit 52b50714c2
3 changed files with 162 additions and 0 deletions

12
.clang-tidy Normal file
View File

@@ -0,0 +1,12 @@
# Qt helpers where the standard is exact; the list grows one check at a time.
Checks: '-*,bugprone-unsafe-functions'
WarningsAsErrors: 'bugprone-unsafe-functions'
CheckOptions:
bugprone-unsafe-functions.CustomFunctions: >
^::qMin$,std::min,;
^::qMax$,std::max,;
^::qAbs$,std::abs,;
^::qBound$,std::clamp,orders arguments as (low, value, high)
# Header findings repeat per translation unit, and submodules are not ours.
HeaderFilterRegex: ''