[clang] d29a53d - [Clang] Added heading to doc for malloc attribute

Dávid Bolvanský via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 24 06:35:33 PDT 2021


Author: Dávid Bolvanský
Date: 2021-04-24T15:35:16+02:00
New Revision: d29a53d9cabcb37621b793c5bf44076e75b8db88

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

LOG: [Clang] Added heading to doc for malloc 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 7b9d618c07ae..1960596f1bfb 100644
--- a/clang/include/clang/Basic/AttrDocs.td
+++ b/clang/include/clang/Basic/AttrDocs.td
@@ -3714,6 +3714,7 @@ system) and does not imply undefined behavior, making it more widely applicable.
 
 def RestrictDocs : Documentation {
   let Category = DocCatFunction;
+  let Heading = "malloc";
   let Content = [{
 The ``malloc`` attribute indicates that the function acts like a system memory
 allocation function, returning a pointer to allocated storage disjoint from the


        


More information about the cfe-commits mailing list