[clang][docs] document __attribute__((cleanup())) GNU C extension
authorNick Desaulniers <ndesaulniers@google.com>
Thu, 1 Jun 2023 18:18:03 +0000 (11:18 -0700)
committerNick Desaulniers <ndesaulniers@google.com>
Thu, 1 Jun 2023 18:24:53 +0000 (11:24 -0700)
commit8dc13957cb1752b6a90e299d016e09bb98b0df54
treec26b2f2757ad432c91f9d8843472cac16e2e83b1
parent5022fc2ad31b5e3211e2458347c89412b8c5ec1b
[clang][docs] document __attribute__((cleanup())) GNU C extension

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

Reviewed By: erichkeane

Differential Revision: https://reviews.llvm.org/D151732
clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/AttrDocs.td