================
@@ -2447,6 +2442,32 @@ class DataInvocationGadget : public WarningGadget {
return false;
}
+ // Returns true if `CE` casts the pointer returned by `data()` to a pointer
to
+ // a larger type, or if the size of either pointee type cannot be determined.
+ static bool isUnsafeCast(const ExplicitCastExpr *CE, const ASTContext &Ctx) {
----------------
yuhaouy wrote:
Done.
https://github.com/llvm/llvm-project/pull/234814
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits