[clang-tools-extra] [clang-tidy] Fix `bugprone-incorrect-enable-if` inserting duplicate `typename` (PR #190899)

via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 8 06:57:09 PDT 2026


================
@@ -245,6 +224,12 @@ Changes in existing checks
   positive when increment/decrement operators appear inside lambda bodies that
   are part of a condition expression.
 
+- Improved :doc:`bugprone-incorrect-enable-if
+  <clang-tidy/checks/bugprone/incorrect-enable-if>` check to not
+  insert an extraneous ``typename`` on code like
+  ``typename std::enable_if<...>``, where there's already a
+  ``typename`` and only the ``::type`` at the end is missing.
----------------
EugeneZelenko wrote:

```suggestion
  ``typename std::enable_if<...>``, where there's already a ``typename`` and
  only the ``::type`` at the end is missing.
```

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


More information about the cfe-commits mailing list