[clang] eb469c2 - Fix Clang sphinx build

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 31 12:42:16 PST 2023


Author: Aaron Ballman
Date: 2023-01-31T15:42:07-05:00
New Revision: eb469c2751227f789db40c75fae2143d313c91be

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

LOG: Fix Clang sphinx build

This addresses the issue found by:
https://lab.llvm.org/buildbot/#/builders/92/builds/39458

and it also fixes a follow-on error with building the RST.

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 b0b11e85ab6a..eebbf6863dd4 100644
--- a/clang/include/clang/Basic/AttrDocs.td
+++ b/clang/include/clang/Basic/AttrDocs.td
@@ -6275,6 +6275,7 @@ attribute requires a string literal argument to identify the handle being releas
 }
 
 def UnsafeBufferUsageDocs : Documentation {
+  let Category = DocCatFunction;
   let Content = [{
 The attribute ``[[clang::unsafe_buffer_usage]]`` should be placed on functions
 that need to be avoided as they are prone to buffer overflows. It is designed to
@@ -6295,6 +6296,7 @@ would make sense to put the attribute on function ``foo()`` below because
 passing an incorrect size parameter would cause a buffer overflow:
 
 .. code-block:: c++
+
   [[clang::unsafe_buffer_usage]]
   void foo(int *buf, size_t size) {
     for (size_t i = 0; i < size; ++i) {


        


More information about the cfe-commits mailing list