[cfe-dev] clang-format and Allman style

Arji Cot arjicot at gmail.com
Sat Jul 20 00:46:43 PDT 2013


I noticed that all the 4 style available by default ( LLVM, Google,
Chromium, Mozilla ) are basically the same with little to no variation, the
first thing that I noticed is the lack of the Allman style, which is quite
popular style for formatting C and C++ code, but is also one of the most
readable style: the lack of the Allman style is something done on purpose (
for some reason ) or it's just not available yet ?

I'm asking this question simply because Allman is really popular and I
found strange that not even after tweaking (
http://clang.llvm.org/doxygen/structclang_1_1format_1_1FormatStyle.html )
clang-format a little I got a real Allman style or something that I'm just
happy with, looks like that clang-format is designed to keep a certain
style in any case.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130720/b284b82b/attachment.html>


More information about the cfe-dev mailing list