File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
clang/include/clang/Basic Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -6849,7 +6849,7 @@ def UnsafeBufferUsageDocs : Documentation {
6849
6849
The attribute ``[[clang::unsafe_buffer_usage]]`` should be placed on functions
6850
6850
that need to be avoided as they are prone to buffer overflows or unsafe buffer
6851
6851
struct fields. It is designed to work together with the off-by-default compiler
6852
- warning ``-Wunsafe-buffer-usage``to help codebases transition away from raw pointer
6852
+ warning ``-Wunsafe-buffer-usage`` to help codebases transition away from raw pointer
6853
6853
based buffer management, in favor of safer abstractions such as C++20 ``std::span``.
6854
6854
The attribute causes ``-Wunsafe-buffer-usage`` to warn on every use of the function or
6855
6855
the field it is attached to, and it may also lead to emission of automatic fix-it
You can’t perform that action at this time.
0 commit comments