Skip to content

Commit 143450a

Browse files
author
Зишан Мирза
committed
fix: function names
1 parent 734eca2 commit 143450a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang-tools-extra/test/clang-tidy/checkers/bugprone/unsafe-functions.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,12 @@ void f4(const time_t *Timer) {
118118
// CHECK-MESSAGES-WITH-ANNEX-K-CERT-ONLY: :[[@LINE-2]]:3: warning: function 'localtime' is not bounds-checking and non-reentrant; 'localtime_s' should be used instead
119119
// no-warning WITHOUT-ANNEX-K
120120

121-
char *(*F4)(const struct tm *) = &ctime;
121+
char *(*F1)(const struct tm *) = &ctime;
122122
// CHECK-MESSAGES-WITH-ANNEX-K: :[[@LINE-1]]:37: warning: function 'ctime' is not bounds-checking and non-reentrant; 'ctime_s' should be used instead
123123
// CHECK-MESSAGES-WITH-ANNEX-K-CERT-ONLY: :[[@LINE-2]]:37: warning: function 'ctime' is not bounds-checking and non-reentrant; 'ctime_s' should be used instead
124124
// no-warning WITHOUT-ANNEX-K
125125

126-
struct tm *(*F4)(const struct tm *) = &localtime;
126+
struct tm *(*F2)(const struct tm *) = &localtime;
127127
// CHECK-MESSAGES-WITH-ANNEX-K: :[[@LINE-1]]:37: warning: function 'localtime' is not bounds-checking and non-reentrant; 'localtime_s' should be used instead
128128
// CHECK-MESSAGES-WITH-ANNEX-K-CERT-ONLY: :[[@LINE-2]]:37: warning: function 'localtime' is not bounds-checking and non-reentrant; 'localtime_s' should be used instead
129129
// no-warning WITHOUT-ANNEX-K

0 commit comments

Comments
 (0)