Skip to content

Commit a189367

Browse files
committed
Adjust wording
1 parent 728fc71 commit a189367

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

clang-tools-extra/docs/ReleaseNotes.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ Changes in existing checks
136136
- Improved :doc:`misc-header-include-cycle
137137
<clang-tidy/checks/misc/header-include-cycle>` check performance.
138138

139-
- Fixed a :doc:`modernize-use-constraints
140-
<clang-tidy/checks/modernize/use-constraints>` crash on uses of
141-
nonstandard ``enable_if``s with a signature different from
139+
- Improved :doc:`modernize-use-constraints
140+
<clang-tidy/checks/modernize/use-constraints>` check by fixing a crash on
141+
uses of non-standard ``enable_if`` with a signature different from
142142
``std::enable_if`` (such as ``boost::enable_if``).
143143

144144
- Improved :doc:`modernize-use-designated-initializers

clang-tools-extra/test/clang-tidy/checkers/modernize/use-constraints.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ struct some_type_trait {
762762
static constexpr bool value = true;
763763
};
764764

765-
// Fix-its are offered even for a nonstandard enable_if.
765+
// Fix-its are offered even for a non-standard enable_if.
766766
namespace nonstd {
767767

768768
template <bool Condition, typename T = void>
@@ -775,7 +775,7 @@ typename nonstd::enable_if<some_type_trait<T>::value, void>::type nonstd_enable_
775775
// CHECK-MESSAGES: :[[@LINE-1]]:1: warning: use C++20 requires constraints instead of enable_if [modernize-use-constraints]
776776
// CHECK-FIXES: {{^}}void nonstd_enable_if() requires some_type_trait<T>::value {}{{$}}
777777

778-
// But only if the nonstandard enable_if has the same signature as the standard one.
778+
// But only if the non-standard enable_if has the same signature as the standard one.
779779
namespace boost {
780780

781781
template <typename Condition, typename T = void>

0 commit comments

Comments
 (0)