[PATCH] D144064: [-Wunsafe-buffer-usage] Match unsafe pointers being casted to bool or participating in pointer subtractions
Artem Dergachev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 10 12:58:40 PDT 2023
NoQ accepted this revision.
NoQ added a comment.
LGTM!
================
Comment at: clang/lib/Analysis/UnsafeBufferUsage.cpp:188-191
+ allOf(hasLHS(hasPointerType()),
+ hasRHS(hasPointerType())),
+ eachOf(hasLHS(InnerMatcher),
+ hasRHS(InnerMatcher)));
----------------
Still a bit off!
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144064/new/
https://reviews.llvm.org/D144064
More information about the cfe-commits
mailing list