[clang] Fix false match on nullPointerConstant for array indices (PR #201893)

Kay Hicketts via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 26 02:16:28 PDT 2026


================
@@ -980,6 +980,8 @@ AST Matchers
 ------------
 - Add ``functionTypeLoc`` matcher for matching ``FunctionTypeLoc``.
 - Add missing support for ``TraversalKind`` in some ``addMatcher()`` overloads.
+- Fixed ``nullPointerConstant`` matcher falsely matching integer literal ``0``
----------------
KHicketts wrote:

that's true.  I could also add a unit test to make that explicit.

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


More information about the cfe-commits mailing list