[libcxx-commits] [PATCH] D128577: [libc++][chrono] Implements formatter day.
Nikolas Klauser via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jul 3 03:31:42 PDT 2022
philnik added inline comments.
================
Comment at: libcxx/include/__chrono/formatter.h:60-61
+ tm __result{
+ .tm_sec = 0,
+ .tm_min = 0,
+ .tm_hour = 0,
----------------
Mordante wrote:
> ldionne wrote:
> > Suggestion:
> >
> > ```
> > .tm_sec = 0
> > , .tm_min = 0
> > , .tm_hour = 0
> > ...
> > #ifdef __GLIBC__
> > , .tm_gmtoff = 0
> > , .tm_zone = "UTC"
> > #endif
> > ```
> >
> > IDK if clang-format will handle that gracefully.
> I haven't found a clang-format option to do this. Only for the constructor. But I agree it would be great when clang-format would have an option to do this.
What's wrong with just using a trailing comma?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128577/new/
https://reviews.llvm.org/D128577
More information about the libcxx-commits
mailing list