[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

C++: Indenting and formatting program sources.



Can anyone recommend a program to indent and format C++ program sources 
for consistency of style and perhaps better readability?
Specifying the used options or attaching a suitable configuration file 
(like a .ident.pro for GNU indent) is desirable.

GNU indent does not targeted directly to C++ code. Is this a problem?
The only official deb that I found for this task is astyle. I have not 
tried it yet. Are there others? Are there commonly used programs for 
this task that are not debianized?
The LDP C-C++ Beautifier HOW-TO mentions bcpp. Is it commonly used?

Is there a way to have vim force a standard and consistent style? Once 
again, attaching a configuration file or pointing out to a standard one 
is desirable.
-- 

    Shaul Karl
    email: shaulka (replace these parenthesis with @) bezeqint,
           delete the comma and the white space characters and add .net




Reply to: