C++STYLE

Felix Natter fnatter@gmx.net
Sat May 13 13:28:00 GMT 2000


Nathan Myers <ncm@cantrip.org> writes:

> It turns out to be pretty easy to make Emacs indent C++ code
> reasonably, by changing just a couple of C++-specific variables.
> I'll post a report later today.

I'd like this to be included in the Emacs manual.

If the indentation-mechanism is identical for C and C++, then
maybe there is a chance of having a pre-defined indentation-style.
If not, then there should be a section in the manual about indentation
for GNU C++.

from the Emacs 20.6-manual:

Node: Program Indent
* Basic Indent::	Indenting a single line.
* Multi-line Indent::   Commands to reindent many lines at once.
* Lisp Indent::		Specifying how each Lisp function should be indented.
* C Indent::		Extra features for indenting C and related modes.
* Custom C Indent::	Controlling indentation style for C and related modes.

Node: Custom C Indent
* Syntactic Analysis::
* Indentation Calculation::
* Changing Indent Style::
* Syntactic Symbols::
* Variables for C Indent::
* C Indent Styles::

I propose a section following "Custom C Indent": "GNU C++ indentation".
There are also syntactic symbols for C++ missing. The only one
I am aware of is "innamespace".
I will post this to gnu.emacs.bug, so if there are other symbols missing,
please tell me so.

-- 
Felix Natter


More information about the Libstdc++ mailing list