bug-indent
[Top][All Lists]
Advanced

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

[Bug-indent] Indenting braces after a function


From: BRM
Subject: [Bug-indent] Indenting braces after a function
Date: Thu, 16 Jun 2005 13:21:41 -0700 (PDT)

I'm new to using indent, so please forgive my
ignorance of its usage. If this is the wrong place to
post this, please let me know where I should go, but
as the documentation doesn't list anything else...

I'm trying to set up my .indent.pro to my accustomed
style, which is pretty easy, but I have run into one
issue - I can't figure out how to get indent to indent
the first brace '{' after a function - i.e. to produce
the following:

void debug()
    {
    dosomething();
    }

It always wants to move the brace back to the start of
the line as follows:

void debug()
{
dosomething();
}

Below are the options in my ~/.indent.pro file:

-bl -bli4 -bls -bs -c4 -cbi4 -cdb -cdw -nce -ci4 -cli0
-i0 -lp -bap -bbo -nbfda -npcs -nprs -npsl -saf -sai
-saw -nsc -sob -nut -pmt -sbi4 -ss -ts4

I'm executing it via:

$ indent -v *

in my test directory.

Did I miss an option? Or is it just not there to do
what I want?

Thanks,

Ben




reply via email to

[Prev in Thread] Current Thread [Next in Thread]