auto-indent research result and proposal
dirk at hohndel.org
Sun Jan 19 08:53:47 UTC 2014
On Jan 18, 2014, at 4:23 PM, Thiago Macieira <thiago at macieira.org> wrote:
> On sábado, 18 de janeiro de 2014 13:58:34, Dirk Hohndel wrote:
>>> On sábado, 18 de janeiro de 2014 07:35:42, Dirk Hohndel wrote:
>>>>> 4 - it uses and expect tabstop=8 (kernel's guide expects the same),
>>>>> escaped new lines will look unindented if you use tabstop!=8.
>>>> I don't understand that.
>>> I think he means continuation lines. There are three solutions to them:
>>> 1) align and enforce the tabstop size (this is Emacs default)
>>> [ tab ]unsigned x = (a + b +
>>> [ tab ][ tab ].... c);
>> That's what our current code does
> And that's what I understood from Danilo that his formatting rules are doing.
I spent some time with this. I like it in principle but I don’t think it will work for us.
At least not as required hook
a) clang-format isn’t included on a Mac - so all our Mac based developers would
have to build llvm/clang from source in order to get the tools.
b) the formatting of Qt control structures is hideous.
a) is something we could work around I’m sure
b) is the one that I need a solution for
More information about the subsurface