473,388 Members | 1,207 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

GNU indent styles

Hi,
I was searching the web for some common indent styles represented
as options for GNU indent (like gnu = -nbad -bap -nbc -bbo -bl -bli2
-bls -ncdb -nce -cp1 -cs -di2 -ndj -nfc1 -nfca -... or
Kernighan & Ritchie = -nbad -bap -bbo -nbc -br -brs -c33 -cd33 -ncdb
-ce -ci4 -cli0 -..., but for ones that arn't represented as one
parameter yet.) and it seems quite difficult to find any.
What I want is basically the more or less "sane" style, like the
one recommended for java here
http://java.sun.com/docs/codeconv/ht...nvTOC.doc.html
but for c++.
Does anyone know of a web site listing several styles as a list of
gnu indent parameters?

Thanks,
Ido Yehieli.

Mar 23 '06 #1
10 5400
Hi!

Id*********@gmail.com:

< [...]
but for c++.
Does anyone know of a web site listing several styles as a list of
gnu indent parameters?


IIRC gnu indent does not support C++.

Regards,
Matthias
Mar 23 '06 #2
Matthias Kluwe wrote:
Hi!

Id*********@gmail.com:

< [...]
but for c++.
Does anyone know of a web site listing several styles as a list of
gnu indent parameters?


IIRC gnu indent does not support C++.


More to the point, I'm pretty sure C++ language does not support GNU
indent ;)

To the OP, try somewhere where GNU indent is topical.

Ben Pope
--
I'm not just a number. To many, I'm known as a string...
Mar 23 '06 #3
Ben Pope wrote:
IIRC gnu indent does not support C++.


More to the point, I'm pretty sure C++ language does not support GNU
indent ;)


However, it would probably be easier to change GNU indent in such a way that
it works with C++ than it would be to change C++ in such a way that it
works with GNU indent.

Mar 23 '06 #4
Rolf Magnus wrote:
Ben Pope wrote:
IIRC gnu indent does not support C++.

More to the point, I'm pretty sure C++ language does not support GNU
indent ;)


However, it would probably be easier to change GNU indent in such a way that
it works with C++ than it would be to change C++ in such a way that it
works with GNU indent.


Indeed. My point was that it is off topic (you snipped that).

Ben Pope
--
I'm not just a number. To many, I'm known as a string...
Mar 23 '06 #5
I'm sorry,
I thought that C++ code beautifying was topical for a c++ news
group.
Anyway, I've solved the problem by using astyle instead of indent...

Thanks,
Ido Yehieli.

Mar 23 '06 #6
Id*********@gmail.com wrote:
IÂ*thoughtÂ*thatÂ*C++Â*codeÂ*beautifyingÂ*wasÂ*top icalÂ*forÂ*aÂ*c++Â*news
group.
Perfectly topical; this is not news:comp.std.c++
Anyway, I've solved the problem by using astyle instead of indent...


I would have said, but I was busy writing pristine & totally portable C++
code using only The Standard. (And boost;)

--
Phlip
http://www.greencheese.org/ZeekLand <-- NOT a blog!!!
Mar 23 '06 #7
Id*********@gmail.com wrote:
I'm sorry,
I thought that C++ code beautifying was topical for a c++ news
group.


Well, to find out what's topical in a newsgroup, reading its FAQ is usually
a good idea. comp.lang.c++ is only for discussing the C++ programming
language itself, not any specific tools that have to do with it.

Mar 24 '06 #8
On 2006-03-23, Phlip <ph*******@gmail.com> wrote:
Id*********@gmail.com wrote:
I*thought*that*C++*code*beautifying*was*topical*fo r*a*c++*news
group.


Perfectly topical; this is not news:comp.std.c++
Anyway, I've solved the problem by using astyle instead of indent...


I would have said, but I was busy writing pristine & totally portable C++
code using only The Standard. (And boost;)

Ah good, there is some sanity. I'd like to know where his question was
topical and had the ear of C++ programmers if not here.
Mar 24 '06 #9

Rolf Magnus wrote:
Id*********@gmail.com wrote:
I'm sorry,
I thought that C++ code beautifying was topical for a c++ news
group.


Well, to find out what's topical in a newsgroup, reading its FAQ is usually
a good idea. comp.lang.c++ is only for discussing the C++ programming
language itself, not any specific tools that have to do with it.


Yes, please no practical discussion here.

Mar 24 '06 #10
Rolf Magnus wrote:
Well, to find out what's topical in a newsgroup, reading its FAQ is
usually
a good idea. comp.lang.c++ is only for discussing the C++ programming
language itself, not any specific tools that have to do with it.


I doubt you remember the Bad Old Days, when this newsgroup was a cesspool of
questions like "how to I click on the MFC class wizard?" A devoted group of
regulars cleaned this newsgroup up, and added perks like Shiva's "welcome"
message. They inspired the current generation to patrol a territory.

The point of topicality is to cultivate a community of regulars who want to
answer questions that center on C++. Everyone here should know 'astyle' is
the leading C++ indenter.

And the "FAQ" doesn't even qualify as /argumentum ad autoritatem/. It isn't
a charter or constitution. I didn't vote for it, and neither did my cronies.

If you feel the need for topicality, reinforce that posting to the narrowest
technical newsgroup is in most posters' best interests. Generic questions
surrounding C++ (design patterns, some POSIX, Boost, style, "what library?",
and "what tool?") belong in the newsgroup that you would trust to give the
best answer.

Don't tell us you don't trust our community here.

--
Phlip
http://www.greencheese.org/ZeekLand <-- NOT a blog!!!
Mar 25 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: John Wellesz | last post by:
If you are coding php using GVIM, you will appreciate this new indent script: Download there: http://www.vim.org/scripts/download_script.php?src_id=3710 or here: ...
4
by: Werner Partner | last post by:
I'm looking for something like that: http://www.sonoptikon.de/praxis-mt/test.php The text should have a certain indent, and from the left border should come a "marker" which goes over the text...
1
by: Vincent | last post by:
I noticed an irritating behaviour of the text-indent property and I wonder if I'm the only one to feel this way about it: it seems that text-indent applies even to floated elements. Although this...
6
by: Michael Hughes | last post by:
Hi All, I'm building another site, trying to uses as few tables as I can. I've hit a bit of a snag, which is that on this design:- http://www.mfhughes.com/ktest/deutsch.htm If you look on...
22
by: Firas | last post by:
Hi, Is there a CSSish way to indent a paragraph except for the first line? I tried p:first-line { text-indent: 0em; }
1
by: Christopher P. Winter | last post by:
I'm seeing some unexpected behavior with Text-indent, as shown on this page: http://www.chris-winter.com/Digressions/HP_Kayak/My_Kayak.html I set up the following style rules for footnotes: ...
0
by: saabi | last post by:
How to indent length 4 a tab in IE? The text in this CDATA was some html code, it would indent length 8 a tab in IE, but I like to indent length 4 like in the original html editor, How to change...
3
by: Rob Richardson | last post by:
Greetings! I have just begun to use VB.Net at work for the first time, and I have noticed an extremely irritating problem with my IDE setup. If I highlight a block of text and press the tab...
2
by: Chris Seidel | last post by:
Hi, I have a submit-element with a background-image of 16x16 px and the following style: background-image: url("ok.gif"); background-repeat: no-repeat; text-indent: 20 px; The problem is,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.