This patch ensures that the assignment statements responsible for grouping variables (as in https://reviews.llvm.org/D145739) are in an unspecified context (and not in arguments of call expressions, conditions of if statements, etc)
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Great, looks correct to me!
It's probably better to squash this into D145739 so that to avoid the temporary incorrectness. (I hope it won't cause too many merge conflicts.)
clang/lib/Analysis/UnsafeBufferUsage.cpp | ||
---|---|---|
194–195 | I think we need better comments for all three of those 😅 Like, explain what we mean by "unspecified" and write down the exact requirements on types and value kinds of replacement expressions. |
clang/lib/Analysis/UnsafeBufferUsage.cpp | ||
---|---|---|
197 | All the names of our contexts start with "Unspecified-". So maybe adding "Untyped" to the name makes it more clear. |
clang/lib/Analysis/UnsafeBufferUsage.cpp | ||
---|---|---|
197 | Yeah these context names are terrible and that's entirely on me 😅 |
I think we need better comments for all three of those 😅 Like, explain what we mean by "unspecified" and write down the exact requirements on types and value kinds of replacement expressions.