[clang] [clang][NFC] Add missing space in documentation (PR #107905)

Louis Dionne via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 9 12:15:39 PDT 2024


https://github.com/ldionne created https://github.com/llvm/llvm-project/pull/107905

That missing space was causing the whole sentence to be rendered incorrectly in the resulting HTML.

>From df520b4cb99001b81ab00fa530718a2307dafb6f Mon Sep 17 00:00:00 2001
From: Louis Dionne <ldionne.2 at gmail.com>
Date: Mon, 9 Sep 2024 15:14:26 -0400
Subject: [PATCH] [clang][NFC] Add missing space in documentation

That missing space was causing the whole sentence to be rendered
incorrectly in the resulting HTML.
---
 clang/include/clang/Basic/AttrDocs.td | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/include/clang/Basic/AttrDocs.td b/clang/include/clang/Basic/AttrDocs.td
index 546e5100b79dd9..cc9bc499c9cc24 100644
--- a/clang/include/clang/Basic/AttrDocs.td
+++ b/clang/include/clang/Basic/AttrDocs.td
@@ -6849,7 +6849,7 @@ def UnsafeBufferUsageDocs : Documentation {
 The attribute ``[[clang::unsafe_buffer_usage]]`` should be placed on functions
 that need to be avoided as they are prone to buffer overflows or unsafe buffer
 struct fields. It is designed to work together with the off-by-default compiler
-warning ``-Wunsafe-buffer-usage``to help codebases transition away from raw pointer
+warning ``-Wunsafe-buffer-usage`` to help codebases transition away from raw pointer
 based buffer management, in favor of safer abstractions such as C++20 ``std::span``.
 The attribute causes ``-Wunsafe-buffer-usage`` to warn on every use of the function or
 the field it is attached to, and it may also lead to emission of automatic fix-it



More information about the cfe-commits mailing list