<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 3, 2016, at 11:10 AM, Muhammad Hosain Abdollahi Sabet <<a href="mailto:mhasabet@gmail.com" class="">mhasabet@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><p dir="ltr" class="">Alex,</p><p dir="ltr" class="">You mean to change style of ndn codebase? Maybe starts with ndnSIM new release?</p></div></blockquote><div>yeah how about this suggestion, i.e. starting with next ndnSIM release to try out first?</div><div><br class=""></div><div><br class=""></div><blockquote type="cite" class=""><div class=""><div class="gmail_quote">On Nov 3, 2016 9:37 PM, "Alex Afanasyev" <<a href="mailto:aa@cs.ucla.edu" class="">aa@cs.ucla.edu</a>> wrote:<br type="attribution" class=""><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" class="">https://github.com/named-data-<wbr class="">ndnSIM/ndnSIM/blob/master/.<wbr class="">clang-format</a>).<br class="">
<br class="">
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 class="">
<br class="">
--<br class="">
Alex<br class="">
<br class="">
> On Nov 3, 2016, at 11:47 AM, Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu" class="">shijunxiao@email.arizona.edu</a>> wrote:<br class="">
><br class="">
> Hi Nick<br class="">
><br class="">
> 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 class="">
> Thus, I still recommend developers to memorize all style rules and ensure compliance the moment you type it.<br class="">
><br class="">
> 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 class="">
><br class="">
> 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 class="">
><br class="">
> Yours, Junxiao<br class="">
> From: Nick Gordon<br class="">
> Sent: ‎11/‎3/‎2016 11:36<br class="">
> To: Junxiao Shi<br class="">
> Subject: Code formatter/beautifier<br class="">
><br class="">
> Junxiao,<br class="">
><br class="">
> In an attempt to smooth out style issues, I intend to use a formatter.<br class="">
> It appears that there is a well-known program, "clang-format", that does<br class="">
> this. Do you have any system that you use to format your code that I<br class="">
> should know about?<br class="">
><br class="">
> -Nick<br class="">
><br class="">
> ______________________________<wbr class="">_________________<br class="">
> Nfd-dev mailing list<br class="">
> <a href="mailto:Nfd-dev@lists.cs.ucla.edu" class="">Nfd-dev@lists.cs.ucla.edu</a><br class="">
> <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev" rel="noreferrer" target="_blank" class="">http://www.lists.cs.ucla.edu/<wbr class="">mailman/listinfo/nfd-dev</a><br class="">
<br class="">
<br class="">
______________________________<wbr class="">_________________<br class="">
Nfd-dev mailing list<br class="">
<a href="mailto:Nfd-dev@lists.cs.ucla.edu" class="">Nfd-dev@lists.cs.ucla.edu</a><br class="">
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev" rel="noreferrer" target="_blank" class="">http://www.lists.cs.ucla.edu/<wbr class="">mailman/listinfo/nfd-dev</a><br class="">
</blockquote></div>
_______________________________________________<br class="">Nfd-dev mailing list<br class=""><a href="mailto:Nfd-dev@lists.cs.ucla.edu" class="">Nfd-dev@lists.cs.ucla.edu</a><br class="">http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev<br class=""></div></blockquote></div><br class=""></body></html>