diff options
author | Ziqing Luo <ziqing@udel.edu> | 2024-09-13 13:47:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-13 13:47:07 -0700 |
commit | ebf25d9509d19a381d94a0383135ee37f5b7b6e2 (patch) | |
tree | d1457c1bba04a6ddfdb074959a12f3326bd15e7d /llvm/unittests/Support/ProgramTest.cpp | |
parent | 90f077cba8f41a2ba0eb8ffebed8da48322ed0d7 (diff) | |
download | llvm-ebf25d9509d19a381d94a0383135ee37f5b7b6e2.zip llvm-ebf25d9509d19a381d94a0383135ee37f5b7b6e2.tar.gz llvm-ebf25d9509d19a381d94a0383135ee37f5b7b6e2.tar.bz2 |
[-Wunsafe-buffer-usage] Reduce false positives with constant arrays in libc warnings (#108308)
For `snprintf(a, sizeof a, ...)`, the first two arguments form a safe
pattern if `a` is a constant array. In such a case, this commit will
suppress the warning.
(rdar://117182250)
Diffstat (limited to 'llvm/unittests/Support/ProgramTest.cpp')
0 files changed, 0 insertions, 0 deletions