Skip to content

Commit 677775d

Browse files
committed
[libc][c11] implement ctime
remove `ctime` and `ctime_r` from `clang-tidy` this will be done in llvm#107445
1 parent 2ff2fa1 commit 677775d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/clang-tidy/bugprone/UnsafeFunctionsCheck.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static StringRef getReplacementFor(StringRef FunctionName,
4242
// Try to find a better replacement from Annex K first.
4343
StringRef AnnexKReplacementFunction =
4444
StringSwitch<StringRef>(FunctionName)
45-
.Cases("asctime", "asctime_r", "asctime_s", "ctime", "ctime_r")
45+
.Cases("asctime", "asctime_r", "asctime_s")
4646
.Case("gets", "gets_s")
4747
.Default({});
4848
if (!AnnexKReplacementFunction.empty())

0 commit comments

Comments
 (0)