[PATCH] D138318: [-Wunsafe-buffer-usage] Improve pointer match pattern
Ziqing Luo via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 18 12:09:30 PST 2022
ziqingluo-90 created this revision.
ziqingluo-90 added reviewers: NoQ, jkorous, t-rasmud, malavikasamak, aaron.ballman, gribozavr, xazax.hun.
Herald added a subscriber: rnkovacs.
Herald added a project: All.
ziqingluo-90 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This patch Improves the pointer-type matcher used by UnsafeBufferUsage checking by adding matchers for pointer types involving typedef, template instantiation, and decayed types. Corresponding tests are added.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D138318
Files:
clang/lib/Analysis/UnsafeBufferUsage.cpp
clang/test/SemaCXX/warn-unsafe-buffer-usage.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138318.476555.patch
Type: text/x-patch
Size: 5912 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221118/850600f3/attachment.bin>
More information about the cfe-commits
mailing list