This is an archive of the discontinued LLVM Phabricator instance.

[clang][docs] document __attribute__((cleanup())) GNU C extension
ClosedPublic

Authored by nickdesaulniers on May 30 2023, 10:03 AM.

Details

Summary

Provide an example of how to use this extension and more importantly,
document that cleanup functions are run in reverse nested order.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptMay 30 2023, 10:03 AM
nickdesaulniers requested review of this revision.May 30 2023, 10:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 30 2023, 10:03 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
erichkeane accepted this revision.May 30 2023, 10:10 AM
erichkeane added inline comments.
clang/include/clang/Basic/AttrDocs.td
7045
This revision is now accepted and ready to land.May 30 2023, 10:10 AM
nickdesaulniers marked an inline comment as done.
erichkeane accepted this revision.May 30 2023, 10:19 AM

Still LGTM!

  • add note about function signature
  • add note about reverse declaration order for variables declared in the same scope
This revision was landed with ongoing or failed builds.Jun 1 2023, 11:25 AM
This revision was automatically updated to reflect the committed changes.