[PATCH] D150539: [clang-format] Handle <chrono> ud suffixes in IntegerLiteralSeparator
Björn Schäpers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon May 15 13:14:18 PDT 2023
HazardyKnusperkeks accepted this revision.
HazardyKnusperkeks added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clang/lib/Format/IntegerLiteralSeparatorFixer.cpp:116-117
if (Style.isCpp()) {
- if (const auto Pos = Text.find_first_of("_i"); Pos != StringRef::npos) {
+ // FIXME: This doesn't work for ud-suffix d from std::chrono::day.
+ if (const auto Pos = Text.find_first_of("_himnsuy");
+ Pos != StringRef::npos) {
----------------
What about this?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150539/new/
https://reviews.llvm.org/D150539
More information about the cfe-commits
mailing list