[clang-tools-extra] [clang-tidy] Improve redundant-casting check for binary operation (PR #191386)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Fri May 8 10:45:08 PDT 2026


vbvictor wrote:

On line 199 in our tests we expect:

"warning: redundant explicit casting to the same type 'size_t' (aka 'unsigned long{{( long)?}}') as the sub-expression, remove this casting [readability-redundant-casting]"

But on arm buildbot it is:

"warning: redundant explicit casting to the same type 'size_t' (aka 'unsigned int') as the sub-expression, remove this casting [readability-redundant-casting]"

I think we should omit matching full "aka" part here or just look for `unsigned`

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


More information about the cfe-commits mailing list