[clang] [Clang] Introduce `CXXTypeidExpr::hasNullCheck` (PR #95718)

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 16 14:35:38 PDT 2024


================
@@ -268,6 +268,9 @@ Resolutions to C++ Defect Reports
 - Clang now requires a template argument list after a template keyword.
   (`CWG96: Syntactic disambiguation using the template keyword <https://cplusplus.github.io/CWG/issues/96.html>`_).
 
+- Clang no longer always reports ``!noexcept(typeid(expr))`` when the ``typeid`` cannot throw a ``std::bad_typeid``.
----------------
Endilll wrote:

```suggestion
- Clang now considers ``noexcept(typeid(expr))`` more carefully, instead of always assuming that ``std::bad_typeid`` can be thrown.
```

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


More information about the cfe-commits mailing list