Skip to content

Commit e8d6d9e

Browse files
authored
[NFC][SafeBuffers/BoundsSafety] Fix a test that was broken in conflict merging (#10175)
One count on the number of a diagnostic note got lost during conflict merging. This commit fixes it.
1 parent 745ab81 commit e8d6d9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/SemaCXX/warn-unsafe-buffer-usage-count-attributed-pointer-argument.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void cb_cchar_42(const char *__counted_by(42) s);
7272
// expected-note@+1 19{{consider using a safe container and passing '.data()' to the parameter 'p' and '.size()' to its dependent parameter 'count' or 'std::span' and passing '.first(...).data()' to the parameter 'p'}}
7373
void cb_int(int *__counted_by(count) p, size_t count);
7474

75-
// expected-note@+1 33{{consider using a safe container and passing '.data()' to the parameter 'p' and '.size()' to its dependent parameter 'count' or 'std::span' and passing '.first(...).data()' to the parameter 'p'}}
75+
// expected-note@+1 34{{consider using a safe container and passing '.data()' to the parameter 'p' and '.size()' to its dependent parameter 'count' or 'std::span' and passing '.first(...).data()' to the parameter 'p'}}
7676
void cb_cint(const int *__counted_by(count) p, size_t count);
7777

7878
// expected-note@+1 10{{consider using 'std::span' and passing '.first(...).data()' to the parameter 'p'}}

0 commit comments

Comments
 (0)