<div style="font-family: arial, helvetica, sans-serif; font-size: 10pt"><div dir="ltr">Hi all,<div><br></div><div style>although I think we can make clang-format (clang/lib/Format) format more and more pieces of C++ according to a specific style, I am convinced that there are cases where automatic formatting is not the right solution.</div>
<div style><br></div><div style>An example is:</div><div style><a href="http://clang.llvm.org/doxygen/ParseExpr_8cpp-source.html" class="cremed">http://clang.llvm.org/doxygen/ParseExpr_8cpp-source.html</a> line 60-90. Here, careful human thought leads to much more readable code then simply following a style guide.<br>
</div><div style><br></div><div style>In order to handle such cases and still be able to auto-format entire files, I propose to add certain markers around areas of a file that clang-format should not touch. Does anyone have thoughts on this? How would we best design this? Add special comments like "// NO clang-format {"?</div>
<div style><br></div><div style>Cheers,<br>Daniel</div><div style><br></div><div style><br></div></div></div>