bug-indent
[Top][All Lists]
Advanced

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

delcaration and comment error


From: rahst12
Subject: delcaration and comment error
Date: Tue, 18 Jul 2006 10:13:28 -0700 (PDT)

Hello everyone,
I am running indent 2.2.8a
Does anyone have any idea how to remove the forced break lines between the
declarations when there is a block comment on the same line?

I am trying to format some code here and this is what is happening:

This is what I have orginally:

ReturnStatus TestRun (
Format    *tool,         /* -> controlling data structure */
exceed     questions,  /* -> information structruture*/
exceedinfo *exiTEST,     /* -> exceedinfo has all my test data */
Boolean             TFtest) /* -> TFtest returns true sometimes */


This is what I am getting:

ReturnStatus TestRun(Format * tool,        /* -> controlling data structure
*/

                       exceed questions,   /* -> Auxiliary table information
structure */

                       exceedinfo* exiTest, /* -> exceedinfo has all my test
data */

                       Boolean TFtest)
{                               /* -> TFtest returns true sometimes */


This is what I want:

ReturnStatus TestRun (Format *tool,         /* -> controlling data structure
*/
                      exceed questions,  /* -> information structruture*/
                      exceedinfo *exiTEST,     /* -> exceedinfo has all my test 
data */
                      Boolean TFtest) /* -> TFtest returns true sometimes */

this is my .indent.pro file:
-bad    //Force blank lines after the declarations
-bap    //Force blank lines after the procedure bodies
-bbb    //Force blanks lines before block comments
-bfda   //Break the line after the last argument in a declaration
-bli0   //bliN Indent braces N spaces
//-bls  //Put braces on the line after struct declarations lines
-brs    //Puts braces on the struct defination line- java style
-cbi0   //cbiN Indent braces after a case N spaces
//-cdb  //Put comment delimiters on blank lines
-cli2   //cliN Case label indent of N spaces
-cs     //Put a space after a cast operator
-di1    //diN(Declaration-indentation) Put variables in column N
-cd6    //cdN Put comments to the right of the declarations in column N
-fc1    //fcN Format comments in first column N
-hnl  //hnN Prefer to break long lines at the position of new lines in the
input
-i2     //iN Set indentation level to N spaces
-lp     //Line up continued lines at parentheses
-nbc    //Do not force newlines after commas in declarations
-pi3    //piN Specify the extra indentation per open parentheses '(' when a
statement is broken
//-ncdw //Do not cuddle } and the while of a do {} while
-nce    //Do not cuddle } and else.
-nip    //Zero width indentation for parameters
-npcs   //Do not put space after the function in function calls
-npsl   //Put the type of a procedure on the same line as it's name
//-sc   //Put the '*' character at the left of comments
-sob    //Swallow optional blank lines
-ss     //On one-line for and while statements, force a blank before the
semicolon
-nut    //No tabs
//-nsc  //Don't put the '*' on the left side of comments
-nfca //Do not format any comments
-l78    //break lines after 78 spaces

Does anyone have any idea how to remove the forced break lines between the
declarations when there is a block comment on the same line?

Thanks everyone
-- 
View this message in context: 
http://www.nabble.com/delcaration-and-comment-error-tf1961818.html#a5382339
Sent from the Gnu - Indent Tool forum at Nabble.com.





reply via email to

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