Menu

Indents function arg list if

Help
2008-01-24
2013-04-24
  • Jonathan Esche

    Jonathan Esche - 2008-01-24

    If I specify "-code_split_fctdef_style-0" which is the default setting I get exactly what I want.  However if I add "-code_split_if_style-1" I get a different result.  I wouldn't think that the if style setting would have any affect on the function definition.  Below is an example of the good result as well as the bad result.

    /* good result with -code_split_fctdef_style-0 */
    int main
    (
       int      argc,
       char*    argv[]
    )
    {

    }

    /* bad result with -code_split_fctdef_style-0 and  -code_split_if_style-1
       Notice the function arguments are indented in this case.
    */

    int main
       (
          int      argc,
          char*    argv[]
       )
    {

    }

     
    • Jonathan Esche

      Jonathan Esche - 2008-01-24

      The spacing got lost in the previous post so let me try again.  "_" is a space here.

      /* good case */

      int main
      (
      ___int argc,
      ___char* argv[]
      )
      {

      }

      /* bad case */
      int main
      ___(
      ______int argc,
      ______char* argv[]
      ___)
      {

      }

       

Log in to post a comment.