[PATCH] D46519: [clang-format] Respect BreakBeforeClosingBrace while calculating length

Krasimir Georgiev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 7 04:27:06 PDT 2018


krasimir created this revision.
Herald added subscribers: cfe-commits, klimek.

This patch makes `getLengthToMatchingParen` respect the `BreakBeforeClosingBrace`
ParenState for matching scope closers. In order to distinguish between paren states
introduced by real vs. fake parens, I've added the token opening the ParensState
to that struct.


Repository:
  rC Clang

https://reviews.llvm.org/D46519

Files:
  lib/Format/ContinuationIndenter.cpp
  lib/Format/ContinuationIndenter.h
  lib/Format/UnwrappedLineFormatter.cpp
  unittests/Format/FormatTestProto.cpp
  unittests/Format/FormatTestRawStrings.cpp
  unittests/Format/FormatTestTextProto.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46519.145444.patch
Type: text/x-patch
Size: 8527 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180507/668a19a5/attachment.bin>


More information about the cfe-commits mailing list