[clang-tools-extra] [clang-tidy] Create a check for signed and unsigned integers comparison (PR #113144)

via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 30 02:41:47 PDT 2024


================

----------------
qt-tatiana wrote:

Do you mean more templates and macros? 

There already were:
// The code that triggers the check
#define MAX_MACRO(a, b) (a < b) ? b : a

template <typename T>
void TemplateFuncParameter(T val) {
    unsigned long uL = 0;
    if (val >= uL)
        return;
}

But anyway I updated existing ones (and also now templates are skipped  by check)

https://github.com/llvm/llvm-project/pull/113144


More information about the cfe-commits mailing list