[all-commits] [llvm/llvm-project] 9ad0ac: [libc] Add Month enum, refactor mktime_test
Jeff Bailey via All-commits
all-commits at lists.llvm.org
Tue Feb 21 09:24:47 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9ad0ac8eb3d0bc03cac9c8871d0ee771156a67b4
https://github.com/llvm/llvm-project/commit/9ad0ac8eb3d0bc03cac9c8871d0ee771156a67b4
Author: Jeff Bailey <jeffbailey at google.com>
Date: 2023-02-21 (Tue, 21 Feb 2023)
Changed paths:
M libc/src/time/time_utils.h
M libc/test/src/time/mktime_test.cpp
Log Message:
-----------
[libc] Add Month enum, refactor mktime_test
Introduce Month enum.
Use designated initializers instead of comments to ensure that tm_data
is initialized correctly. Use Month enum for initializing .tm_mon to
avoid off-by-one errors.
Co-authored-by: Raman Tenneti <rtenneti at google.com>
Reviewed By: rtenneti
Differential Revision: https://reviews.llvm.org/D144357
More information about the All-commits
mailing list