[clang] aeb051a - Correct the documentation category for the 'cleanup' attribute

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 29 09:09:17 PST 2023


Author: Aaron Ballman
Date: 2023-11-29T12:08:39-05:00
New Revision: aeb051affe690d42e4a7bf96b4704244acc6cefb

URL: https://github.com/llvm/llvm-project/commit/aeb051affe690d42e4a7bf96b4704244acc6cefb
DIFF: https://github.com/llvm/llvm-project/commit/aeb051affe690d42e4a7bf96b4704244acc6cefb.diff

LOG: Correct the documentation category for the 'cleanup' attribute

It was previously classified as a type attribute when it is actually a
variable attribute.

Added: 
    

Modified: 
    clang/include/clang/Basic/AttrDocs.td

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Basic/AttrDocs.td b/clang/include/clang/Basic/AttrDocs.td
index bf89c5a941c3f89..f2c4eb51b443ddb 100644
--- a/clang/include/clang/Basic/AttrDocs.td
+++ b/clang/include/clang/Basic/AttrDocs.td
@@ -7315,7 +7315,7 @@ this usage is debugger-dependent.
 }
 
 def CleanupDocs : Documentation {
-  let Category = DocCatType;
+  let Category = DocCatVariable;
   let Content = [{
 This attribute allows a function to be run when a local variable goes out of
 scope. The attribute takes the identifier of a function with a parameter type


        


More information about the cfe-commits mailing list