Skip to content

Commit 980a75e

Browse files
committed
Update DiagnosticSemaKinds.td
1 parent 284c262 commit 980a75e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13240,6 +13240,8 @@ def note_safe_buffer_usage_suggestions_disabled : Note<
1324013240
def warn_unsafe_buffer_usage_in_container : Warning<
1324113241
"the two-parameter std::span construction is unsafe as it can introduce mismatch between buffer size and the bound information">,
1324213242
InGroup<UnsafeBufferUsageInContainer>, DefaultIgnore;
13243+
def warn_unsafe_buffer_usage_unique_ptr_array_access : Warning<"direct access using operator[] on std::unique_ptr<T[]> is unsafe due to lack of bounds checking">,
13244+
InGroup<UnsafeBufferUsageInUniquePtrArray>, DefaultIgnore;
1324313245
#ifndef NDEBUG
1324413246
// Not a user-facing diagnostic. Useful for debugging false negatives in
1324513247
// -fsafe-buffer-usage-suggestions (i.e. lack of -Wunsafe-buffer-usage fixits).

0 commit comments

Comments
 (0)