[clang] [analyzer] Update the undefined assignment checker diagnostics to not use the term 'garbage' (PR #126596)
David Tarditi via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 10 16:48:51 PST 2025
dtarditi wrote:
@haoNoQ Thank you for the welcome and the helpful information!
Your suggestion sounds good to me. I had actually started down this route initially of pointing out the logical error of using a variable before it is initialized. I changed direction because I was not sure where the undefined values were coming from and how they propagate.
I prefer to focus on the logical error that a programmer should take action to fix, which in this case is using a variable or data before it is initialized. I've found that programmers are often unfamiliar with standards terms like 'undefined behavior'.
https://github.com/llvm/llvm-project/pull/126596
More information about the cfe-commits
mailing list