[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: indent problem
From: |
Wei Mingzhi |
Subject: |
Re: indent problem |
Date: |
Fri, 14 Jul 2006 20:59:40 +0800 |
User-agent: |
KMail/1.9.1 |
That's normal as the GNU Indent doesn't actually support C++. Try astyle[1]
instead (which is also free software).
Regards,
Wei Mingzhi
[1] http://astyle.sourceforge.net
silversurfer writes:
> Hello,
> I wanted to get my C++ code auto-formatted using the gnu-indent tool.
> To be precise, I wanted to use the Kernighan & Ritchie style.
> Unfortunately, the output differs from what could be expected when
> reading the manual.
>
> This is the Kernighan-style...
> -nbad -bap -nbc -br -c33 -cd33 -ncdb -ce -ci4
> -cli0 -cp33 -d0 -di1 -nfc1 -nfca -i4 -ip0 -l75 -lp
> -npcs -npsl -nsc -nsob -nss -ts8 -cs
>
> Insteat of putting the brackets behind the method name into the SAME
> line such as:
>
> void testMethod(int test) {
> //whatever here
> }
>
> it gives:
> void testMethod(int test)
> {
> //whatever here
> }
>
> although the -br option is set. I tried only using -br as well and it
> does not work either.. Any suggestions?
>
> Thanks for your help
> Tim
>
> _______________________________________________
> gnu-misc-discuss mailing list
> gnu-misc-discuss@gnu.org
> http://lists.gnu.org/mailman/listinfo/gnu-misc-discuss
pgpSmsah1sVpI.pgp
Description: PGP signature
- indent problem, silversurfer, 2006/07/14
- Re: indent problem, silversurfer, 2006/07/14
- Re: indent problem,
Wei Mingzhi <=
- Re: indent problem, Alfred M. Szmidt, 2006/07/14
- Message not available
- Re: indent problem, silversurfer2025, 2006/07/14
- Re: indent problem, Alfred M. Szmidt, 2006/07/14
- Message not available
- Re: indent problem, silversurfer2025, 2006/07/14
- Re: indent problem, Miles Bader, 2006/07/14
- Re: indent problem, Alexander Terekhov, 2006/07/15
- Re: indent problem, silversurfer2025, 2006/07/15
- Re: indent problem, Alexander Terekhov, 2006/07/15
- Re: indent problem, s. keeling, 2006/07/15
- Re: indent problem, Miles Bader, 2006/07/16