[cfe-users] clang-format, only horizontal whitespace changes

Daniel Jasper djasper at google.com
Fri Nov 22 09:15:55 PST 2013

You can try whether setting the column limit to 0 is close enough to want
you are looking for. It will still do other changes if it thinks the
current line breaks are bad..
On Nov 22, 2013 5:51 PM, "David Blaikie" <dblaikie at gmail.com> wrote:

> On Fri, Nov 22, 2013 at 5:02 AM, Björn Töpel <bjorn.topel at gmail.com>wrote:
>> I have a code project that I'd like to re-indent using
>> clang-format,however, in order not to break the history, I'd like to
>> make the tool *only* format horizontally (e.g. git log  -b -w will
>> just ignore the re-indentation commit).
>> So it would be a "best effort" re-indent - doing the best it can, but
>> only horizontally (still removing extra spaces in parenthesis pair
>> etc.)
>> Is this possible?
> No - that's not an existing feature of clang-format. It might be an
> interesting one to consider adding, though.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20131122/0865b2c1/attachment.html>

More information about the cfe-users mailing list