aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaojian Wu <hokein.wu@gmail.com>2023-10-25 15:37:04 +0200
committerGitHub <noreply@github.com>2023-10-25 15:37:04 +0200
commit80db833c75f5ea514f331b50372a1baf520b887e (patch)
tree50ffa346066500218d45eb5e0d37b112a2289ff5
parent6c0ceaeccc1358cc3478e832c86615f92801a657 (diff)
downloadllvm-80db833c75f5ea514f331b50372a1baf520b887e.zip
llvm-80db833c75f5ea514f331b50372a1baf520b887e.tar.gz
llvm-80db833c75f5ea514f331b50372a1baf520b887e.tar.bz2
[tooling/include-mapping] Add missing localtime_r symbols (#66091)
Fixes https://github.com/llvm/llvm-project/issues/64587.
-rw-r--r--clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc b/clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc
index 165c1fc..0d351d6 100644
--- a/clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc
+++ b/clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc
@@ -367,6 +367,16 @@ SYMBOL(any_cast, std::, <any>)
SYMBOL(div, std::, <cstdlib>)
SYMBOL(abort, std::, <cstdlib>)
+// These are C symbols that are not under std namespace.
+SYMBOL(localtime_r, None, <ctime>)
+SYMBOL(localtime_r, None, <time.h>)
+SYMBOL(localtime_s, None, <ctime>)
+SYMBOL(localtime_s, None, <time.h>)
+SYMBOL(gmtime_r, None, <ctime>)
+SYMBOL(gmtime_r, None, <time.h>)
+SYMBOL(gmtime_s, None, <ctime>)
+SYMBOL(gmtime_s, None, <time.h>)
+
// The std::placeholder symbols (_1, ..., _N) are listed in the cppreference
// placeholder.html, but the index only contains a single entry with "_1, _2, ..., _N"
// text, which are not handled by the script.