r206157 - Format code around VCS conflict markers.
David Blaikie
dblaikie at gmail.com
Fri Apr 18 08:20:14 PDT 2014
On Thu, Apr 17, 2014 at 11:13 PM, Justin Bogner <mail at justinbogner.com> wrote:
> Manuel Klimek <klimek at google.com> writes:
>> Author: klimek
>> Date: Mon Apr 14 04:14:11 2014
>> New Revision: 206157
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=206157&view=revLog:
>> Format code around VCS conflict markers.
>>
>> Now correctly formats:
>> {
>> int a;
>> void f() {
>> callme(some(parameter1,
>> <<<<<<< text by the vcs
>> parameter2),
>> ||||||| text by the vcs
>> parameter2),
>> parameter3,
>> ======= text by the vcs
>> parameter2, parameter3),
>> >>>>>>> text by the vcs
>> otherparameter);
>> }
>> }
>
> This is pretty cool, but... why bother? When is this useful?
When I'm editing a merge and go to format the code in progress and...
*blam* ClangFormat used to completely mangle my code because of the
diff markers.
More information about the cfe-commits
mailing list