Skip to content

Commit eb469c2

Browse files
committed
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.
1 parent 2e19031 commit eb469c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/include/clang/Basic/AttrDocs.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6275,6 +6275,7 @@ attribute requires a string literal argument to identify the handle being releas
62756275
}
62766276

62776277
def UnsafeBufferUsageDocs : Documentation {
6278+
let Category = DocCatFunction;
62786279
let Content = [{
62796280
The attribute ``[[clang::unsafe_buffer_usage]]`` should be placed on functions
62806281
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
62956296
passing an incorrect size parameter would cause a buffer overflow:
62966297

62976298
.. code-block:: c++
6299+
62986300
[[clang::unsafe_buffer_usage]]
62996301
void foo(int *buf, size_t size) {
63006302
for (size_t i = 0; i < size; ++i) {

0 commit comments

Comments
 (0)