[clang-tools-extra] [clang-tidy] Fix `modernize-use-constraints` crash on uses of nonstandard `enable_if`s (PR #152938)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 10 12:51:37 PDT 2025


================
@@ -136,6 +136,11 @@ Changes in existing checks
 - Improved :doc:`misc-header-include-cycle
   <clang-tidy/checks/misc/header-include-cycle>` check performance.
 
+- Fixed a :doc:`modernize-use-constraints
+  <clang-tidy/checks/modernize/use-constraints>` crash on uses of
+  nonstandard ``enable_if``s with a signature different from
+  ``std::enable_if`` (such as ``boost::enable_if``).
----------------
vbvictor wrote:

I think we generally write
"Improved XXX check by fixing a crush on uses of ..."

https://github.com/llvm/llvm-project/pull/152938


More information about the cfe-commits mailing list