[clang-format] Continue after non-scope-closers in getLengthToMatchingParen
authorKrasimir Georgiev <krasimir@google.com>
Mon, 14 May 2018 10:33:40 +0000 (10:33 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Mon, 14 May 2018 10:33:40 +0000 (10:33 +0000)
commit964293e46d72a07a53f91e3ee7e5fd528cf036cf
tree5d5957528ca9b7fc5cbcb290a9fbc8107c816f1b
parent796fb999b358f9d060946f8a54e0cc7501ec3f61
[clang-format] Continue after non-scope-closers in getLengthToMatchingParen

Summary:
This fixes a regression introduced by `r331857` where we stop the search for
the End token as soon as we hit a non-scope-closer, which prematurely stops before
semicolons for example, which should otherwise be considered as part of the unbreakable tail.

Subscribers: klimek, cfe-commits

Differential Revision: https://reviews.llvm.org/D46824

llvm-svn: 332225
clang/lib/Format/ContinuationIndenter.cpp
clang/unittests/Format/FormatTestObjC.cpp