[PATCH] D104900: [clang-format] PR50525 doesn't handle AlignConsecutiveAssignments correctly in some situations

Darwin Xu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 26 09:11:44 PDT 2021


darwin added a comment.

Sorry I haven't had a chance to look at this bug before it has closed. But I do have question:

I observed that this code are formatted incorrectly by the same config:

  llvm::Optional<std::string> CurrentCode = None;
  auto                        Env = std::make_unique<Environment>(Code,
                                           FileName,
                                           Ranges,
                                           FirstStartColumn,
                                           NextStartColumn,
                                           LastStartColumn);

Can this solution solve this issue? I am afraid not.

If no, should I open a new bug for it?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D104900/new/

https://reviews.llvm.org/D104900



More information about the cfe-commits mailing list