Skip to content

Commit 99618de

Browse files
[Tooling] Simplify a use of std::is_same (NFC) (#160237)
std::is_same<...>::type is functionally the same as std::is_same<...>. This patch removes the redundant ::type at the end.
1 parent 2800ac2 commit 99618de

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

clang/include/clang/Tooling/Refactoring/RefactoringOptionVisitor.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ namespace internal {
3737
template <typename T> struct HasHandle {
3838
private:
3939
template <typename ClassT>
40-
static auto check(ClassT *) -> typename std::is_same<
41-
decltype(std::declval<RefactoringOptionVisitor>().visit(
42-
std::declval<RefactoringOption>(),
43-
*std::declval<std::optional<T> *>())),
44-
void>::type;
40+
static auto check(ClassT *)
41+
-> std::is_same<decltype(std::declval<RefactoringOptionVisitor>().visit(
42+
std::declval<RefactoringOption>(),
43+
*std::declval<std::optional<T> *>())),
44+
void>;
4545

4646
template <typename> static std::false_type check(...);
4747

0 commit comments

Comments
 (0)