Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Fri, 15 Jul 2011 02:44:36 +0400
From: Aleksey Cherepanov <>
Subject: coding styles for c/c++? indenter? emacs settings?

I want to know how to indent the code right.

Owl/doc/CONVENTIONS says that good (not perfect) way to indent is
 'indent -kr -i8 -nlp -nbbo -l79 -lc79'

But documentation for indent says that it is not suitable for c++. For
instance template
will be formatted as
'func < T > (arg);'
that is not good (i saw similar code in Johnny).

Are there any known or already used alternative of indent for c++?

May it be easier to use indent and hands? Because as i understand it is
needed to use hands even with indent as of it is not perfect.

By the way why indent is not perfect? What does indent miss? Or what is the
difference between indent and the preferred coding style? Or what is the
preferred coding style?

Also i want to set my editor up to support such style. Does anyone have
such settings for emacs? Probably set up editor could replace indenter.

Aleksey Cherepanov

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.