llvmorg-github-actions[bot] wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang-tools-extra

Author: Baranov Victor (vbvictor)

<details>
<summary>Changes</summary>

Should fix 
https://github.com/llvm/llvm-project/pull/191386#issuecomment-4408294981.

---
Full diff: https://github.com/llvm/llvm-project/pull/196873.diff


1 Files Affected:

- (modified) 
clang-tools-extra/test/clang-tidy/checkers/readability/redundant-casting.cpp 
(+1-1) 


``````````diff
diff --git 
a/clang-tools-extra/test/clang-tidy/checkers/readability/redundant-casting.cpp 
b/clang-tools-extra/test/clang-tidy/checkers/readability/redundant-casting.cpp
index 13be4192f49d1..6ce2b026fbcce 100644
--- 
a/clang-tools-extra/test/clang-tidy/checkers/readability/redundant-casting.cpp
+++ 
b/clang-tools-extra/test/clang-tidy/checkers/readability/redundant-casting.cpp
@@ -196,7 +196,7 @@ void testBinaryOperatorRedundantCasting() {
   const auto diff_types_operands4 {
     static_cast<size_t>(static_cast<size_t>(3) + 2)
   };
-  // CHECK-MESSAGES: :[[@LINE-2]]:5: warning: redundant explicit casting to 
the same type 'size_t' (aka 'unsigned long{{( long)?}}') as the sub-expression, 
remove this casting [readability-redundant-casting]
+  // CHECK-MESSAGES: :[[@LINE-2]]:5: warning: redundant explicit casting to 
the same type 'size_t' (aka 'unsigned {{(int|long( long)?)}}') as the 
sub-expression, remove this casting [readability-redundant-casting]
   // CHECK-FIXES: (static_cast<size_t>(3) + 2)
   // CHECK-FIXES-IMPLICIT: static_cast<size_t>(static_cast<size_t>(3) + 2)
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/196873
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to