[clang-tools-extra] 89f1856 - [clang-tidy][NFC] Add test case confirming #190944 is fixed (#192707)

via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 19 17:33:50 PDT 2026


Author: Victor Chernyakin
Date: 2026-04-19T17:33:45-07:00
New Revision: 89f185654a2c59537c38c0ba2447c29b13586ee1

URL: https://github.com/llvm/llvm-project/commit/89f185654a2c59537c38c0ba2447c29b13586ee1
DIFF: https://github.com/llvm/llvm-project/commit/89f185654a2c59537c38c0ba2447c29b13586ee1.diff

LOG: [clang-tidy][NFC] Add test case confirming #190944 is fixed (#192707)

Closes #190944.

This issue is already fixed, and this change just adds a test case to
confirm that.

Added: 
    

Modified: 
    clang-tools-extra/test/clang-tidy/checkers/readability/redundant-typename.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/test/clang-tidy/checkers/readability/redundant-typename.cpp b/clang-tools-extra/test/clang-tidy/checkers/readability/redundant-typename.cpp
index 56ff9813cd6ae..e2be40530865f 100644
--- a/clang-tools-extra/test/clang-tidy/checkers/readability/redundant-typename.cpp
+++ b/clang-tools-extra/test/clang-tidy/checkers/readability/redundant-typename.cpp
@@ -366,3 +366,15 @@ typename T::R Foo::PartiallySpecializedDataMember<T, typename T::V> = false;
 // CHECK-FIXES-20: T::R Foo::PartiallySpecializedDataMember<T, typename T::V> = false;
 
 #endif // __cplusplus >= 201402L
+
+struct Int {
+  using R = int;
+};
+
+template <typename T>
+struct BaseClass {};
+
+template <typename T>
+struct SubClass : BaseClass<typename T::R> {};
+
+template struct SubClass<Int>;


        


More information about the cfe-commits mailing list