[clang-tools-extra] [clang-tidy] Providing correct fixes for modernize-use-using (PR #174104)

via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 31 08:50:46 PST 2025


================
@@ -388,8 +388,8 @@ namespace ISSUE_72179
 typedef int* int_ptr, *int_ptr_ptr;
 // CHECK-MESSAGES: :[[@LINE-1]]:1: warning: use 'using' instead of 'typedef' [modernize-use-using]
 // CHECK-MESSAGES: :[[@LINE-2]]:21: warning: use 'using' instead of 'typedef' [modernize-use-using]
-// CHECK-FIXES: using int_ptr = int*;
-// CHECK-FIXES-NEXT: using int_ptr_ptr = int_ptr*;
+// CHECK-FIXES: using int_ptr = int *;
----------------
zeyi2 wrote:

I think the original testcase is not correct: https://godbolt.org/z/fh859r7Pf

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


More information about the cfe-commits mailing list