[clang] [clang][analyzer] Add alpha.core.NullTerminated checker (PR #188128)
John Paul Jepko via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 19 12:42:20 PDT 2026
jpjepko wrote:
I think the concerns about introducing a new attribute are valid, so I tweaked the commit to instead use the annotate attribute, similar to how #177839 enables the checker there. Users can wrap this in a macro like `#define NULL_TERMINATED __attribute__((annotate("null_terminated")))` which would make migration straightforward if a dedicated attribute, perhaps something like `__null_terminated` from \-fbounds\-safety, is eventually upstreamed.
https://github.com/llvm/llvm-project/pull/188128
More information about the cfe-commits
mailing list