On 2015-01-11 19:48, Walter Bright wrote:

The main problem is what to do about comments, which don't fit into the
grammar.

A secondary problem is what to do when the line length limit is
exceeded, such as for long expressions.

clang-format seems to do a pretty good job with both of these. Comments seem to be intact unless they're too long, then they're wrapped. It seems to wrap at a space or other non-identifier character. Same thing with expressions that are too long.

You should download it [1] a give it a try on some C++ code.

[1] http://llvm.org/releases/download.html

--
/Jacob Carlborg

Reply via email to