<div dir="ltr">Absolutely, fix <a href="http://llvm.org/svn/llvm-project/cfe/trunk/docs/ClangFormatStyleOptions.rst">http://llvm.org/svn/llvm-project/cfe/trunk/docs/ClangFormatStyleOptions.rst</a> and upload the patch to Phabricator and cc cfe-commits mailing list.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 22, 2016 at 9:06 PM, FIXED-TERM Kammel Fabian (ETAS-PSC/EPE) via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_-5756526823822118981WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Hey,
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">The other day I asked a question about clang-format on stackoverflow [1]. And another user called attention to the fact that, in the section about
</span><strong><span style="font-family:"Calibri",sans-serif">AlignConsecutiveDeclarations</span></strong><strong><span style="font-family:"Calibri",sans-serif;font-weight:normal">,
</span></strong><span style="font-size:10.0pt;font-family:"Arial",sans-serif">the types of the initializers and variables do not match. It reads:</span><strong><span style="font-family:"Calibri",sans-serif;font-weight:normal"><u></u><u></u></span></strong></p>
<p class="MsoNormal"><strong><span style="font-family:"Calibri",sans-serif;font-weight:normal"><u></u> <u></u></span></strong></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">int aaaa = 12;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">float b = 23;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">std::string ccc = 23;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">And maybe should be changed to something like:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><u></u> <u></u></span></p>
<pre><span class="m_-5756526823822118981kt">int</span> <span class="m_-5756526823822118981n">aaaa</span> <span class="m_-5756526823822118981o">=</span> <span class="m_-5756526823822118981mi">12</span><span class="m_-5756526823822118981p">;</span><u></u><u></u></pre>
<pre><span class="m_-5756526823822118981kt">float</span> <span class="m_-5756526823822118981n">b</span> <span class="m_-5756526823822118981o">=</span> <span class="m_-5756526823822118981mi">2.4f</span><span class="m_-5756526823822118981p">;</span><u></u><u></u></pre>
<pre><span class="m_-5756526823822118981n">std</span><span class="m_-5756526823822118981o">::</span><span class="m_-5756526823822118981n">string</span> <span class="m_-5756526823822118981n">ccc</span> <span class="m_-5756526823822118981o">=</span> <span class="m_-5756526823822118981mi">“some string”</span><span class="m_-5756526823822118981p">;</span><u></u><u></u></pre>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Is the mailing list the correct place for suggestions like that? Or is there another place to discuss improvements of the documentation?
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">I try to integrate clang-format and clang-tidy in our development process and might stumble upon more ambiguities and possible improvements.
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Also I noticed that the documentation (especially for clang-tidy options) is sometimes quite sparse. Is there a way for me to contribute to the documentation, since I need to
figure this stuff out either way. <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Best regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Fabian Kammel<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">[1]
</span> <span style="font-size:10.0pt;font-family:"Arial",sans-serif"><a href="http://stackoverflow.com/questions/41264554/m" target="_blank">http://stackoverflow.com/<wbr>questions/41264554/m</a></span><span lang="DE" style="font-size:10.0pt;font-family:"Arial",sans-serif">ultiple-<wbr>successive-declarations-<wbr>definitions-on-same-<wbr>indentation-level/41264995#<wbr>41264995<u></u><u></u></span></p>
</div>
</div>
<br>______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>