We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e19031 commit eb469c2Copy full SHA for eb469c2
clang/include/clang/Basic/AttrDocs.td
@@ -6275,6 +6275,7 @@ attribute requires a string literal argument to identify the handle being releas
6275
}
6276
6277
def UnsafeBufferUsageDocs : Documentation {
6278
+ let Category = DocCatFunction;
6279
let Content = [{
6280
The attribute ``[[clang::unsafe_buffer_usage]]`` should be placed on functions
6281
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
6295
6296
passing an incorrect size parameter would cause a buffer overflow:
6297
6298
.. code-block:: c++
6299
+
6300
[[clang::unsafe_buffer_usage]]
6301
void foo(int *buf, size_t size) {
6302
for (size_t i = 0; i < size; ++i) {
0 commit comments