[PATCH] D146042: [clang-format] Fix numerous issues with "LambdaBodyIndentation: OuterScope" option

Jon Phillips via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 14 06:26:59 PDT 2023


jp4a50 created this revision.
Herald added a subscriber: mgrang.
Herald added a project: All.
jp4a50 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

The previous implementation of the option involved a hack which
corrupted the parenthesis state stack.

Specifically, this change fixes github issue #55708, #53212, #52846 and #59954.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D146042

Files:
  clang/lib/Format/ContinuationIndenter.cpp
  clang/lib/Format/UnwrappedLineFormatter.cpp
  clang/unittests/Format/FormatTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146042.505072.patch
Type: text/x-patch
Size: 12931 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230314/8c695737/attachment.bin>


More information about the cfe-commits mailing list