Skip to content

Commit 80db833

Browse files
authored
[tooling/include-mapping] Add missing localtime_r symbols (#66091)
Fixes #64587.
1 parent 6c0ceae commit 80db833

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,16 @@ SYMBOL(any_cast, std::, <any>)
367367
SYMBOL(div, std::, <cstdlib>)
368368
SYMBOL(abort, std::, <cstdlib>)
369369

370+
// These are C symbols that are not under std namespace.
371+
SYMBOL(localtime_r, None, <ctime>)
372+
SYMBOL(localtime_r, None, <time.h>)
373+
SYMBOL(localtime_s, None, <ctime>)
374+
SYMBOL(localtime_s, None, <time.h>)
375+
SYMBOL(gmtime_r, None, <ctime>)
376+
SYMBOL(gmtime_r, None, <time.h>)
377+
SYMBOL(gmtime_s, None, <ctime>)
378+
SYMBOL(gmtime_s, None, <time.h>)
379+
370380
// The std::placeholder symbols (_1, ..., _N) are listed in the cppreference
371381
// placeholder.html, but the index only contains a single entry with "_1, _2, ..., _N"
372382
// text, which are not handled by the script.

0 commit comments

Comments
 (0)