r189337 - clang-format: Revamp builder-type call formatting.
Daniel Jasper
djasper at google.com
Fri Sep 6 01:11:42 PDT 2013
Thanks for tracking this down! Fixed in r190124.
On Fri, Sep 6, 2013 at 1:04 AM, Tobias Grosser <tobias at grosser.es> wrote:
> On 08/27/2013 04:09 AM, Daniel Jasper wrote:
>
>> Author: djasper
>> Date: Tue Aug 27 06:09:05 2013
>> New Revision: 189337
>>
>> URL: http://llvm.org/viewvc/llvm-**project?rev=189337&view=rev<http://llvm.org/viewvc/llvm-project?rev=189337&view=rev>
>> Log:
>> clang-format: Revamp builder-type call formatting.
>>
>> Previously builder-type calls were only correctly recognized in
>> top-level calls.
>>
>> This fixes llvm.org/PR16981.
>> Before:
>> someobj->Add((new util::filetools::Handler(dir))**->OnEvent1(
>> NewPermanentCallback(this, &HandlerHolderClass::**
>> EventHandlerCBA))
>> ->OnEvent2(**NewPermanentCallback(
>> this, &HandlerHolderClass::**
>> EventHandlerCBB))
>> ->OnEvent3(**NewPermanentCallback(
>> this, &HandlerHolderClass::**
>> EventHandlerCBC))
>> ->OnEvent5(**NewPermanentCallback(
>> this, &HandlerHolderClass::**
>> EventHandlerCBD))
>> ->OnEvent6(**NewPermanentCallback(
>> this, &HandlerHolderClass::**
>> EventHandlerCBE)));
>>
>> After:
>> someobj->Add((new util::filetools::Handler(dir))
>> ->OnEvent1(**NewPermanentCallback(
>> this, &HandlerHolderClass::**EventHandlerCBA))
>> ->OnEvent2(**NewPermanentCallback(
>> this, &HandlerHolderClass::**EventHandlerCBB))
>> ->OnEvent3(**NewPermanentCallback(
>> this, &HandlerHolderClass::**EventHandlerCBC))
>> ->OnEvent5(**NewPermanentCallback(
>> this, &HandlerHolderClass::**EventHandlerCBD))
>> ->OnEvent6(**NewPermanentCallback(
>> this, &HandlerHolderClass::**
>> EventHandlerCBE)));
>>
>
> Hi Daniel,
>
> this change introduced a regression:
>
> == Before the change ==
>
> bool foo() {
> if (APF.convertToInteger(&**UIntVal, 64, true, APFloat::rmTowardZero,
> &isExact) != APFloat::opOK ||
> !isExact)
> return false
> }
>
> == After the change ==
>
> bool foo() {
> if (APF.convertToInteger(&**UIntVal, 64, true, APFloat::rmTowardZero,
> &isExact) !=
> APFloat::opOK ||
> !isExact)
> return false
> }
>
> The line break which is introduced by this change after the '!=' seems to
> be a formatting regression.
>
> Cheers,
> Tobias
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130906/3385c5d8/attachment.html>
More information about the cfe-commits
mailing list