<p dir="ltr">Alex,</p>
<p dir="ltr">You mean to change style of ndn codebase? Maybe starts with ndnSIM new release?</p>
<p dir="ltr">Sabet</p>
<div class="gmail_quote">On Nov 3, 2016 9:37 PM, "Alex Afanasyev" <<a href="mailto:aa@cs.ucla.edu">aa@cs.ucla.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The standard version of clang-format (at least as of year ago) allows only limited customization.  Our current style not really expressable with clang-format rules (I did some patching that got closer, but still not the same: <a href="https://github.com/named-data-ndnSIM/ndnSIM/blob/master/.clang-format" rel="noreferrer" target="_blank">https://github.com/named-data-<wbr>ndnSIM/ndnSIM/blob/master/.<wbr>clang-format</a>).<br>
<br>
Potentially a good way of solving this problem is to select a more standard style (e.g., Google), which will make all the automation work.<br>
<br>
--<br>
Alex<br>
<br>
> On Nov 3, 2016, at 11:47 AM, Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu">shijunxiao@email.arizona.edu</a>> wrote:<br>
><br>
> Hi Nick<br>
><br>
> I heard there are someone using clang-format, but I haven't heard anyone being able to create a clang-format configuration that ensures 100% compliance.<br>
> Thus, I still recommend developers to memorize all style rules and ensure compliance the moment you type it.<br>
><br>
> I heard from a Google engineer that they use Eclipse to ensure Google code style compliance. I'm unsure whether it's possible with ndn-cxx rules.<br>
><br>
> ndnSIM has defined their rules in terms of a particular clang-format configuration, which could be a solution. However, relying on a tool as the rules is similar to defining a network protocol in terms of a specific implementation, which could cause inter-operability problems.<br>
><br>
> Yours, Junxiao<br>
> From: Nick Gordon<br>
> Sent: ‎11/‎3/‎2016 11:36<br>
> To: Junxiao Shi<br>
> Subject: Code formatter/beautifier<br>
><br>
> Junxiao,<br>
><br>
> In an attempt to smooth out style issues, I intend to use a formatter.<br>
> It appears that there is a well-known program, "clang-format", that does<br>
> this. Do you have any system that you use to format your code that I<br>
> should know about?<br>
><br>
> -Nick<br>
><br>
> ______________________________<wbr>_________________<br>
> Nfd-dev mailing list<br>
> <a href="mailto:Nfd-dev@lists.cs.ucla.edu">Nfd-dev@lists.cs.ucla.edu</a><br>
> <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/<wbr>mailman/listinfo/nfd-dev</a><br>
<br>
<br>
______________________________<wbr>_________________<br>
Nfd-dev mailing list<br>
<a href="mailto:Nfd-dev@lists.cs.ucla.edu">Nfd-dev@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/<wbr>mailman/listinfo/nfd-dev</a><br>
</blockquote></div>