[PATCH] D141338: [-Wunsafe-buffer-usage] Filter out conflicting fix-its
Ziqing Luo via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 9 17:38:01 PST 2023
ziqingluo-90 created this revision.
ziqingluo-90 added reviewers: NoQ, jkorous, t-rasmud, malavikasamak.
Herald added a subscriber: mgrang.
Herald added a project: All.
ziqingluo-90 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Two fix-its conflict if they have overlapping source ranges. We shall not emit conflicting fix-its.
This patch adds a class to find all conflicting fix-its (as well as their associated gadgets or declarations).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D141338
Files:
clang/lib/Analysis/UnsafeBufferUsage.cpp
clang/test/SemaCXX/warn-unsafe-buffer-usage-fixits.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141338.487614.patch
Type: text/x-patch
Size: 12973 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230110/d727ebd1/attachment-0001.bin>
More information about the cfe-commits
mailing list