llvmorg-github-actions[bot] wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang-tidy

Author: Zeyi Xu (zeyi2)

<details>
<summary>Changes</summary>



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


1 Files Affected:

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


``````````diff
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 e2be40530865f..c4021662264f4 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
@@ -378,3 +378,22 @@ template <typename T>
 struct SubClass : BaseClass<typename T::R> {};
 
 template struct SubClass<Int>;
+
+template <typename T>
+struct Sink {};
+
+template <typename...>
+using VoidT = void;
+
+template <typename C, typename = void>
+inline constexpr bool HasValueType = false;
+
+template <typename C>
+inline constexpr bool HasValueType<C, VoidT<typename C::value_type>> =
+    sizeof(Sink<typename C::value_type>) != 0;
+
+struct IntVector {
+  using value_type = int;
+};
+
+static_assert(HasValueType<IntVector>);

``````````

</details>


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

Reply via email to