]> granicus.if.org Git - clang/commit
Refactor ContinuationIndenter's breakProtrudingToken logic.
authorManuel Klimek <klimek@google.com>
Tue, 14 Nov 2017 09:19:53 +0000 (09:19 +0000)
committerManuel Klimek <klimek@google.com>
Tue, 14 Nov 2017 09:19:53 +0000 (09:19 +0000)
commitbf29fe4665de7cdc5686068f13fe0904f81b99c7
treef9799c6d53851387ef75887f18150f521bb830b2
parent93556e376b123243b8118325279c1f3c3b4d2582
Refactor ContinuationIndenter's breakProtrudingToken logic.

Create more orthogonal pieces. The restructuring made it easy to try out
several alternatives to D33589, and while none of the alternatives
turned out to be the right solution, the underlying simplification of
the structure is helpful.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@318141 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/BreakableToken.cpp
lib/Format/ContinuationIndenter.cpp
lib/Format/ContinuationIndenter.h
unittests/Format/FormatTest.cpp
unittests/Format/FormatTestComments.cpp