[PATCH] D143128: [-Wunsafe-buffer-usage] Fix-Its transforming `&DRE[any]` to `(DRE.data() + any)`
Ziqing Luo via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 17 13:44:49 PST 2023
ziqingluo-90 updated this revision to Diff 498498.
ziqingluo-90 added a comment.
Now we have different `FixableGadget`s that may match the same `Stmt` (representing a context).
So in order to discover all "Fixable"s, we can no longer match `anyOf` `FixableGadget`s' matchers. Instead, we match `eachOf` them.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143128/new/
https://reviews.llvm.org/D143128
Files:
clang/include/clang/Analysis/Analyses/UnsafeBufferUsage.h
clang/include/clang/Analysis/Analyses/UnsafeBufferUsageGadgets.def
clang/lib/Analysis/UnsafeBufferUsage.cpp
clang/test/SemaCXX/warn-unsafe-buffer-usage-fixits-addressof-arraysubscript.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143128.498498.patch
Type: text/x-patch
Size: 10990 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230217/0bc633f7/attachment.bin>
More information about the cfe-commits
mailing list