mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-20 08:03:45 +08:00
Added clang-tidy ban of qMin, qMax, qAbs and qBound.
This commit is contained in:
12
.clang-tidy
Normal file
12
.clang-tidy
Normal 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: ''
|
||||
Reference in New Issue
Block a user