]> granicus.if.org Git - clang/commit
[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)
commit52145d6f9c2beeef77c87eae37abccd9bb2300d0
treeb12f5b43ab99b47a8a22b6cb3d1cd21a160dbd49
parent2431dcf1721245afe73334cf718b8dd31bff3429
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@332225 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/ContinuationIndenter.cpp
unittests/Format/FormatTestObjC.cpp