On 2013-05-24 5:15 PM, Michael Hoye wrote:


----- Original Message -----
From: "Mike Hommey" <m...@glandium.org>
To: "Michael Hoye" <mh...@mozilla.com>

clang-format unfortunately only deals with whitespaces. It does have
neat formatting with them, but it's limited to that.

I don't think that's true, or at least, it looks like that's only true for the 
Mozilla style option in the current clang-format code, but clang-format could 
be taught to do a lot more.

Yeah, the decisions clang-format makes about Mozilla starts here:

http://clang.llvm.org/doxygen/Format_8cpp_source.html

down around line 178, but this:

http://clang.llvm.org/doxygen/namespaceclang_1_1format.html#nested-classes

implies that it could do a lot more (maybe most?) of what we need if it got a bit of 
love, and even just "most" would be a big win.

Mike is right, clang-format only handles whitespace style.

Cheers,
Ehsan
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to