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

Gaurav Dhingra via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 11 03:16:35 PDT 2026


================
@@ -168,6 +170,20 @@ void testFunctionalCastWithInitExpr(unsigned a) {
   unsigned c = unsigned{0};
 }
 
+void testBinaryOperatorRedundantCasting() {
----------------
gxyd wrote:

Done, I've added more test cases for these.

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


More information about the cfe-commits mailing list