[Nfd-dev] Code formatter/beautifier

Junxiao Shi shijunxiao at email.arizona.edu
Thu Nov 3 10:47:32 PDT 2016


Hi Nick

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.
Thus, I still recommend developers to memorize all style rules and ensure compliance the moment you type it.

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.

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.

Yours, Junxiao

-----Original Message-----
From: "Nick Gordon" <nmgordon at memphis.edu>
Sent: ‎11/‎3/‎2016 11:36
To: "Junxiao Shi" <shijunxiao at email.arizona.edu>
Subject: Code formatter/beautifier

Junxiao,

In an attempt to smooth out style issues, I intend to use a formatter. 
It appears that there is a well-known program, "clang-format", that does 
this. Do you have any system that you use to format your code that I 
should know about?

-Nick

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20161103/c6f714cc/attachment.html>


More information about the Nfd-dev mailing list