[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
indent problem
From: |
silversurfer |
Subject: |
indent problem |
Date: |
14 Jul 2006 05:03:39 -0700 |
User-agent: |
G2/0.2 |
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
- indent problem,
silversurfer <=
- Re: indent problem, silversurfer, 2006/07/14
- Re: indent problem, Wei Mingzhi, 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, 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