[clang] 83bb731 - [clang][NFC] Add missing space in -Wunsafe-buffer-usage documentation (#107905)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 16 11:13:17 PDT 2024
Author: Louis Dionne
Date: 2024-09-16T14:12:34-04:00
New Revision: 83bb7318cad150608d5579aa9fbfd7e8d600e5c5
URL: https://github.com/llvm/llvm-project/commit/83bb7318cad150608d5579aa9fbfd7e8d600e5c5
DIFF: https://github.com/llvm/llvm-project/commit/83bb7318cad150608d5579aa9fbfd7e8d600e5c5.diff
LOG: [clang][NFC] Add missing space in -Wunsafe-buffer-usage documentation (#107905)
That missing space was causing the whole sentence to be rendered
incorrectly in the resulting HTML.
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 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