[PATCH] D156787: [analyzer][attr] Add docs to ownership_* attributes

Balázs Benics via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 3 00:55:44 PDT 2023


steakhal added inline comments.


================
Comment at: clang/test/Analysis/malloc-annotations.c:151-155
+void af6(void) {
+  int *p = my_malloc(12);
+  my_hold(p);
+  *p = 4;
+}
----------------
Please, consider elaborating on this test with some comments, as it's not clear to me at first glance - without reading anything about the attributes - what's going on here.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D156787/new/

https://reviews.llvm.org/D156787



More information about the cfe-commits mailing list