[PATCH] D157385: [clang][CFG] Cleanup functions

Aaron Puchert via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 14 16:54:53 PDT 2023


aaronpuchert added inline comments.


================
Comment at: clang/test/Analysis/scopes-cfg-output.cpp:1472
+// CHECK-NEXT:    2:  (CXXConstructExpr, [B1.3], F)
+// CHECK-NEXT:    3: F f __attribute__((cleanup(cleanup_F)));
+// CHECK-NEXT:    4: CleanupFunction (cleanup_F)
----------------
The test failure in D152504 suggests that this needs to be written as
```
__attribute__((cleanup(cleanup_F))) F f
```
Maybe something changed upstream?


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

https://reviews.llvm.org/D157385



More information about the cfe-commits mailing list