-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[libc] implement template functions for localtime #110363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
✅ With the latest revision this PR passed the C/C++ code formatter. |
6e15b2f
to
15a5bef
Compare
95ad2ec
to
4e12c67
Compare
469939e
to
47a3589
Compare
Instead of using |
5c51ae3
to
316e0a9
Compare
Even though this pull request is not yet finished, I thought it would be great to get a review since this pull request is getting quite big. There are some unit tests that are not working, and have been commented out. |
eca1d44
to
1456c67
Compare
2f14147
to
6a84f62
Compare
Consider marking this as a "draft" in the github UI. |
This is a large change and there are some aspects that will likely require more discussion, like what kind of TZ support we even want and how to do it, whether we could share the implementation with libc++, etc. This could be discussed either on Discourse or at the public LLVM-libc meeting (or both). In the meantime, I think the best path forward would be to split this change into multiple changes, with the first one being just an empty minimal implementation which could be merged while we're discussing the implementation details. |
Sure, I will mark this as a draft. |
7d246be
to
88911f0
Compare
I have limited this pull request to template functions for |
This is an implementation for template functions of localtime.
Update for this pull request: Implementation as been removed from this pull request and will be added to a new one. This is because this pull request is getting big. This pull request will only contain template functions in order to implement localtime.
Update: The implementation is available in https://github.com/zimirza/llvm-project/tree/localtime_implementation.