[clang] [attributes][-Wunsafe-buffer-usage] Support adding unsafe_buffer_usage attribute to struct fields (PR #101585)
Artem Dergachev via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 1 19:31:58 PDT 2024
================
@@ -959,12 +966,12 @@ class UnsafeBufferUsageAttrGadget : public WarningGadget {
/// perform buffer operations that depend on the correctness of the parameters.
class UnsafeBufferUsageCtorAttrGadget : public WarningGadget {
constexpr static const char *const OpTag = "cxx_construct_expr";
- const CXXConstructExpr *Op;
+ const Expr *Op;
----------------
haoNoQ wrote:
Is this change still necessary? I think it was included by accident.
https://github.com/llvm/llvm-project/pull/101585
More information about the cfe-commits
mailing list