Automatic Indentation for ns-3 code

24 views
Skip to first unread message

Eitan Zahavi

unread,
Feb 10, 2020, 8:34:07 AM2/10/20
to ns-3-reviews
Hi All,

Is there a tool you recommend that will correctly indent cc and h files to meet the ns-3 standard
Thanks
Eitan

Tom Henderson

unread,
Feb 10, 2020, 10:13:25 AM2/10/20
to Eitan Zahavi, ns-3-r...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "ns-3-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-reviews...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-reviews/bcb9935d-8a51-4a93-bc58-cf3fc748ec4b%40googlegroups.com.

Hi Eitan, the ns-3-reviews email list is not widely read anymore, by the way, but a few of us are on it.

There is a wrapper script around the uncrustify tool, at 'utils/check-style.py'.

https://www.nsnam.org/doxygen/group___check_style.html

It requires that you install the 'uncrustify' package on your system first.

Sample invocation:

$ utils/check-style.py -i -f src/internet/model/my-new-protocol.h -l 3

- Tom

Reply all
Reply to author
Forward
0 new messages