[cfe-dev] clang-format leading whitespace

Samuel Williams via cfe-dev cfe-dev at lists.llvm.org
Fri Nov 10 22:19:51 PST 2017

I am interested in contributing to clang-format, to add an option to
preserve and correct leading indentation.

Right now if you write code such as:

....int x = 10;
....return x;

The line in the middle will be truncated and there is no option to control

Some code prefers to have indented leading whitespace, indented to the same
level as the previous line.

Would such a contribution be accepted and is anyone willing to help me
through the process where necessary?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20171111/5e7adec9/attachment.html>

More information about the cfe-dev mailing list