diff options
author | David Tarditi <d_tarditi@apple.com> | 2025-02-26 13:57:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-26 13:57:33 +0100 |
commit | 8138d85f630726d2ddbf4a7950683c7db3853eb8 (patch) | |
tree | 152f702b10e0363b809895085442574ca67113a3 /libcxx/include/__algorithm/generate.h | |
parent | a00586171cdf835148c66704a877740a9f742a3a (diff) | |
download | llvm-8138d85f630726d2ddbf4a7950683c7db3853eb8.zip llvm-8138d85f630726d2ddbf4a7950683c7db3853eb8.tar.gz llvm-8138d85f630726d2ddbf4a7950683c7db3853eb8.tar.bz2 |
[analyzer] Update the undefined assignment checker diagnostics to not use the term 'garbage' (#126596)
A clang user pointed out that messages for the static analyzer undefined
assignment checker use the term ‘garbage’, which might have a negative
connotation to some users. This change updates the messages to use the
term ‘uninitialized’. This is the usual reason why a value is undefined
in the static analyzer and describes the logical error that a programmer
should take action to fix.
Out-of-bounds reads can also produce undefined values in the static
analyzer. The right long-term design is to have to the array bounds
checker cover out-of-bounds reads, so we do not cover that case in the
updated messages. The recent improvements to the array bounds checker
make it a candidate to add to the core set of checkers.
rdar://133418644
Diffstat (limited to 'libcxx/include/__algorithm/generate.h')
0 files changed, 0 insertions, 0 deletions