This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Continue after non-scope-closers in getLengthToMatchingParen
ClosedPublic

Authored by krasimir on May 14 2018, 3:28 AM.

Details

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.

Diff Detail

Event Timeline

krasimir created this revision.May 14 2018, 3:28 AM
This revision was not accepted when it landed; it landed in state Needs Review.May 14 2018, 3:37 AM
This revision was automatically updated to reflect the committed changes.