[clang] [clang][-Wunsafe-buffer-usage] Warn on initializing annotated fields (PR #230491)
Ilyas Mallah via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 9 00:20:53 PST 2026
ilyas-mallah wrote:
@usx95 @zmodem Could you review this? It warns when a field annotated with [[clang::unsafe_buffer_usage]] is initialized. My other Safe Buffers PRs are #232898 (merged as https://github.com/llvm/llvm-project/commit/36300c7f1c7713d0c6084416fd0383ac8eb49f4a) and #233604. CI is green on the current head. Is comparing an initializer's location with the end of the init list an acceptable way to tell Sema's own initializers from written ones?
https://github.com/llvm/llvm-project/pull/230491
More information about the cfe-commits
mailing list