// RUN: %check_clang_tidy -std=c++20 %s modernize-use-constraints %t -- -- -fno-delayed-template-parsing // NOLINTBEGIN namespace std { template struct enable_if { }; template struct enable_if { typedef T type; }; template using enable_if_t = typename enable_if::type; } // namespace std // NOLINTEND // Separate test file for the case where the first '>>' token part of // an enable_if expression correctly handles the synthesized token. template > void first_greatergreater_is_enable_if() { } // CHECK-MESSAGES: :[[@LINE-3]]:23: warning: use C++20 requires constraints instead of enable_if [modernize-use-constraints] // CHECK-FIXES: {{^}}void first_greatergreater_is_enable_if() requires T::some_value {{{$}}