[clang-tools-extra] Add bugprone-sprintf-argument-overlap (PR #114244)

Chris Cotter via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 6 20:57:45 PST 2025


ccotter wrote:

Oh, you are entirely right. I completely missed that gcc had this check. All of my test cases are covered by gcc's check, and gcc's check is a bit smarter than mine (`sprintf(stp->buf, "%s", st1.buf)` is caught by gcc, but not my check).

Is this still worth adding here? I didn't see an equivalent in clang's -Wall.

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


More information about the cfe-commits mailing list