<div dir="ltr">On Wed, Feb 6, 2013 at 8:50 PM, Sean Silva <span dir="ltr"><<a href="mailto:silvas@purdue.edu" target="_blank">silvas@purdue.edu</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">> Optionally derive formatting information from the input file.<br>
<br>
</div>A more sophisticated extension of this might be the solution to the<br>
"StringSwitch" issue.<br>
<br>
However, going down that road has the disadvantage that it means that<br>
the output depends on the formatting of the input, which loses (to<br>
some extent) the "canonicality" property of the formatting. (Has this<br>
been discussed elsewhere?).<br></blockquote><div><br></div><div style>Yes, this comes up every time one argues with C++ devs :)</div><div style>There are multiple issues at play here:</div><div style>- this change only detects configuration options, it doesn't actually change the behavior depending on how code was formatted before in a non-canonical way</div>
<div style>- we already configure code according to the previous whitespaces - obviously macros need this, but we also derive where comments belong to by looking at whitespace around the comment</div><div style>- applying "don't touch" to StringSwitch is a pretty strong example for the other end of the spectrum, and I'd strongly vote against doing this for as long as possible ;)</div>
<div style><br></div><div style>Cheers,</div><div style>/Manuel</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
-- Sean Silva<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</div></div></blockquote></div><br></div></div>