https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/160237
std::is_same<...>::type is the same as std::is_same<...>. This patch removes the redundant ::type at the end. >From 0e51d048184bd92ad825bd78ea6023a753398417 Mon Sep 17 00:00:00 2001 From: Kazu Hirata <[email protected]> Date: Fri, 19 Sep 2025 16:12:10 -0700 Subject: [PATCH] [Tooling] Simplify a use of std::is_same (NFC) std::is_same<...>::type is the same as std::is_same<...>. This patch removes the redundant ::type at the end. --- .../Tooling/Refactoring/RefactoringOptionVisitor.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/clang/include/clang/Tooling/Refactoring/RefactoringOptionVisitor.h b/clang/include/clang/Tooling/Refactoring/RefactoringOptionVisitor.h index 3234b0976a8e7..ed2aa55c99279 100644 --- a/clang/include/clang/Tooling/Refactoring/RefactoringOptionVisitor.h +++ b/clang/include/clang/Tooling/Refactoring/RefactoringOptionVisitor.h @@ -37,11 +37,11 @@ namespace internal { template <typename T> struct HasHandle { private: template <typename ClassT> - static auto check(ClassT *) -> typename std::is_same< - decltype(std::declval<RefactoringOptionVisitor>().visit( - std::declval<RefactoringOption>(), - *std::declval<std::optional<T> *>())), - void>::type; + static auto check(ClassT *) + -> std::is_same<decltype(std::declval<RefactoringOptionVisitor>().visit( + std::declval<RefactoringOption>(), + *std::declval<std::optional<T> *>())), + void>; template <typename> static std::false_type check(...); _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
