[clang-tools-extra] [clang-tidy] Compact the confusable identifier table (PR #202626)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 3 02:44:32 PDT 2026


================
@@ -17,6 +17,18 @@ int ll;
 // CHECK-MESSAGES: :[[#@LINE-1]]:5: warning: 'll' is confusable with 'l1' [misc-confusable-identifiers]
 // CHECK-MESSAGES: :[[#@LINE-3]]:5: note: other declaration found here
 
+int rn;
+int m;
+// CHECK-MESSAGES: :[[#@LINE-1]]:5: warning: 'm' is confusable with 'rn'
----------------
vbvictor wrote:

These seem to work before: https://godbolt.org/z/EYaK76YPM
Is there reason to add new cases (any uncovered code paths?)

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


More information about the cfe-commits mailing list