Provided by: manpages-ja_0.5.0.0.20110915-1_all bug

indent

        1.3 indent :

            indent [options] [input-files]

            indent [options] [single-input-file] [-o output-file]

        indent

        1 indent

       2  1 `-o'

       indent  `-st'  1

        `-'

         `slithy_toves.c'  `slithy_toves.out' :

            indent slithy_toves.c -o slithy_toves.out

            indent -st slithy_toves.c > slithy_toves.out

            cat slithy_toves.c | indent -o slithy_toves.out

       indent  1.2 indent  `--'  `+' [POSIX  `+'  `--' ]

       :

            indent -br test/metabolism.c -l85

            `test/metabolism.c'     `-br'      `-l85'      `test/metabolism.c'
       `test/metabolism.c' `test'

       :

            indent --braces-on-if-line --line-length185 test/metabolism.c

            indent +braces-on-if-line +line-length185 test/metabolism.c

       indent   `.indent.pro'  indent   3  INDENT_PROFILE indent `.indent.pro'
       indent  `.indent.pro'  indent  `.indent.pro'

       `.indent.pro'  () `.indent.pro' C  C++

        `.indent.pro'  1 : () `-npro' indent  `.indent.pro'

        1.3 GNU indent  GNU  GNU Emacs

        1  `~' () `python.c'  `python.c~'

        SIMPLE_BACKUP_SUFFIX

            `momeraths.c'     `momeraths.c.~23~'     23      `src/momeraths.c'
       `src/momeraths.c.~V~'    V     `src'     1    VERSION_WIDTH    0    "2"
       `momeraths.c.~04~'

           VERSION_CONTROL     `simple'     `numbered'     `numbered-existing'
       VERSION_CONTROL indent  `numbered-existing'

        indent  `.BAK' SIMPLE_BACKUP_SUFFIX  `.BAK'

        indent  GNU indent

       C GNU Kernighan & Ritchie  Berkeley  1

        1.2 GNU indent GNU `-gnu' GNU :

            -nbad -bap -nbc -bbo -bl -bli2 -bls -ncdb -nce -cp1 -cs -di2
            -ndj -nfc1 -nfca -hnl -i2 -ip5 -lp -pcs -nprs -psl -saf -sai
            -saw -nsc -nsob

       GNU   GNU   GNU  Emacs   C  GNU  Emacs   C  (GNU  GNU   (The GNU Coding
       Standards) )

       Kernighan & Ritchie  C (The C Programming Language)  `-kr' Kernighan  &
       Ritchie :

            -nbad -bap -bbo -nbc -br -brs -c33 -cd33 -ncdb -ce -ci4 -cli0
            -cp33 -cs -d0 -di1 -nfc1 -nfca -hnl -i4 -ip0 -l75 -lp -npcs
            -nprs -npsl -saf -sai -saw -nsc -nsob -nss

       Kernighan & Ritchie  ( 1 )  33 indent :

        Berkeley  indent `-orig' ( `--original') :

            -nbad -nbap -bbo -bc -br -brs -c33 -cd33 -cdb -ce -ci4 -cli0
            -cp33 -di16 -fc1 -fca -hnl -i4 -ip4 -l75 -lp -npcs -nprs -psl
            -saf -sai -saw -sc -nsob -nss -ts8

        indent

       `-bad' indent `-nbad'

       `-bap' `-nbap'

       `-bbb' () `-nbbb'

       `-sob' indent () `-nsob'

--blank-lines-after-declarations

       `-bad' `-nbad'

            char *foo;
            char *bar;
            /*  */
            int baz;

       indent -bad

            char *foo;
            char *bar;

            /*  */
            int baz;

       indent -nbad

            char *foo;
            char *bar;
            /*  */
            int baz;

--blank-lines-after-procedures

       `-bap'

            int
            foo ()
            {
              puts("Hi");
            }
            /*  bar   */
            char *
            bar ()
            {
              puts("Hello");
            }

       indent -bap

            int
            foo ()
            {
              puts ("Hi");
            }

            /*  bar   */
            char *
            bar ()
            {
              puts ("Hello");
            }

       indent -nbap

            int
            foo ()
            {
              puts ("Hi");
            }
            /*  bar   */
            char *
            bar ()
            {
              puts ("Hello");
            }

        foo

       indent  C  C++ C  `/*'  `*/' C++  `//'

       indent indent ( 1 )

        indent

       indent `*'  `-'  `/*'  `*', `=', `_', `-'  (`/*')  `*' `*'

       :

            /**********************
             * !! *
             **********************/

                   /*
                    *
                    *
                    */

       indent

       `-bbb'

        1 (1  2 ) `-fca'  1 `-fc1'

        78 `-lc'

        () ()  `-d' `-d2'  2 `-fc1'

        33  3 `-c' `-cd' `-cp' #else  #endif

         1

       `-cdb'  /* Loving hug */  1

            /*
               Loving hug
             */

       `-sc'  `*'  1  (`-cdb -sc' )

            /*
             * Loving hug
             */

       `-br'  `-bl'

       `-br' :

            if (x > 0) {
              x--;
            }

       `-bl' :

            if (x > 0)
              {
                x--;
              }

       `-bl'  `-bli' `-bli2' () `-bli0' :

            if (x > 0)
            {
              x--;
            }

       `-br'  `-ce'  if-then-else  else  `}'  `-br -ce' :

            if (x > 0) {
              x--;
            } else {
              fprintf (stderr, "...something wrong?\n");
            }

        `-br -nce' :

            if (x > 0) {
              x--;
            }
            else {
              fprintf (stderr, "...something wrong?\n");
            }

        do-while  while  `}'  `-cdw'

            do {
              x--;
            } while (x);

        `-ncdw' :

            do {
              x--;
            }
            while (x);

       `-cli' case  switch

            switch (i)
              {
              case 0:
                break;
              case 1:
                {
                  ++i;
                }
              default:
                break;
              }

       `-cli2'

            switch (i)
              {
                case 0:
                  break;
                case 1:
                  {
                    ++i;
                  }
                default:
                  break;
              }

       case `-cbin'  `-cli2 -cbi0'

            switch (i)
              {
                case 0:
                  break;
                case 1:
                {
                  ++i;
                }
                default:
                  break;
              }

        for  while `-ss' for  while `-nss'

       `-pcs' `('  (puts ("Hi"); `-npcs'  puts("Hi");) )

       `-cs' indent

       `-bs'  sizeof  `Bill_Shannon'

       `-saf'  for

       `-sai'  if

       `-saw'  while

       `-prs'  `-prs'

              while ( ( e_code - s_code ) < ( dec_ind - 1 ) )
                {
                  set_buf_break ( bb_dec_ind );
                  *e_code++ = ' ';
                }

       indent  `-di' `-di16' :

            int             foo;
            char           *bar;

       `-di'  (1  2 ) :

            int foo;
            char *bar;

       `-di' `-di2' :

            int
              foo;

       `-bc' :

            int a,
              b,
              c;

        `-nbc' :

            int a, b, c;

       `-bfda'  1 `-bfde' 2  'n'  -nbdfa  -nbdfe

            void foo (int arg1, char arg2, int *arg3, long arg4, char arg5);

       `-bfda'

            void foo (
                int arg1,
                char arg2,
                int *arg3,
                long arg4,
                char arg5);

        `-bfde'

            void foo (
                int arg1,
                char arg2,
                int *arg3,
                long arg4,
                char arg5
                );

       `-psl' etags  Emacs  c-mode

        typedef `-T'  indent `-T'

            typedef unsigned long CODE_ADDR;
            typedef enum {red, blue, green} COLOR;

         `-T CODE_ADDR -T COLOR'

       `-brs'  `-bls'  struct `-brs'

            struct foo {
              int x;
            };

       `-bls'

            struct foo
            {
              int x;
            };

         1  if  for  `-i'  8  `-i8'  2 2  `-ci' `-ci'  0 `-lp'  `['  `{' `-nlp
       -ci3' :

              p1 = first_procedure (second_procedure (p2, p3),
                 third_procedure (p4, p5));

       `-lp' :

              p1 = first_procedure (second_procedure (p2, p3),
                                    third_procedure (p4, p5));

        2  (...)   1

            if ((((i < 2 &&
                    k > 0) || p == 0) &&
                q == 1) ||
              n = 0)

        `-ipN'  `-ip0'

            if ((((i < 2 &&
              k > 0) || p == 0) &&
              q == 1) ||
              n = 0)

       indent  8 ( 1.2 ) `-ts'

        `-ip'  `-ip5' :

            char *
            create_world (x, y, scale)
                 int x;
                 int y;
                 float scale;
            {
              . . .
            }

        indent  `-nip'  `-ip0'

       ANSI C  `#'  indent `-lps' indent  `-ppi'   `-nlps'   `-lps'

         `-ppi 3'

            #if X
            #if Y
            #define Z 1
            #else
            #define Z 0
            #endif
            #endif

            #if X
            #   if Y
            #      define Z 1
            #   else
            #      define Z 0
            #   endif
            #endif

        `-ln'  `--line-lengthn' C

        GNU indent  2.1

         2

       `-bbo'  GNU  indent   &&   ||  `-nbbo'  GNU  indent  (`--line-length60'
       `--ignore-newlines')  `-bbo'

              if (mask
                  && ((mask[0] == '\0')
                      || (mask[1] == '\0'
                          && ((mask[0] == '0') || (mask[0] == '*')))))

        `-nbbo'

              if (mask &&
                  ((mask[0] == '\0') ||
                   (mask[1] == '\0' &&
                    ((mask[0] == '0') || (mask[0] == '*')))))

        `-hnl'

              if (mask
                  && ((mask[0] == '\0')
                  || (mask[1] == '\0' && ((mask[0] == '0') || (mask[0] == '*')))))

        `-hnl'  `--honour-newlines'  `-nbbo'  `--line-length60'

              if (mask
                  && ((mask[0] == '\0')
                      || (mask[1] == '\0' &&
                          ((mask[0] == '0') || (mask[0] == '*')))))

        GNU indent  1  `--ignore-newlines' indent

        C  /* *INDENT-OFF* */  /* *INDENT-ON* */

       indent  C  (*/)

        C++   // *INDENT-OFF*  // *INDENT-ON*

       indent

       :  indent *INDENT**  indent  GNU indent

        indent  indent -version indent

       `-v' indent  1

       `-pmt' indent indent make  POSIX utime(2)

        bug-indent@gnu.org

        1  indent  2 2 indent

       indent  C  (`.indent.pro') indent indent

       C++  indent C++

        indent  `--line-length' indent

       /* *INDENT-OFF* */ indent indent (`-v' )

       /*UPPERCASE*/

        indent `indent.texinfo'  `indent.info' `indent.1'

       Copyright (c) 2001 David Ingamells.
       Copyright (c) 1999 Carlo Wood.
       Copyright (c) 1995, 1996 Joseph Arceneaux.
       Copyright (c) 1989, 1992, 1993, 1994, 1995, 1996 Free Software Foundation
       Copyright (c) 1985 Sun Microsystems, Inc.
       Copyright (c) 1980 The Regents of the University of California.
       Copyright (c) 1976 Board of Trustees of the University of Illinois.
       All rights reserved.

       Redistribution and use in source and binary forms are permitted
       provided that the above copyright notice and this paragraph are
       duplicated in all such forms and that any documentation,
       advertising materials, and other materials related to such
       distribution and use acknowledge that the software was developed
       by the University of California, Berkeley, the University of Illinois,
       Urbana, and Sun Microsystems, Inc.  The name of either University
       or Sun Microsystems may not be used to endorse or promote products
       derived from this software without specific prior written permission.
       THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
       IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
       WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
       PURPOSE.

            --blank-lines-after-commas                      -bc
            --blank-lines-after-declarations                -bad
            --blank-lines-after-procedures                  -bap
            --blank-lines-before-block-comments             -bbb
            --braces-after-if-line                          -bl
            --brace-indent                                  -bli
            --braces-after-struct-decl-line                 -bls
            --braces-on-if-line                             -br
            --braces-on-struct-decl-line                    -brs
            --break-after-boolean-operator                  -nbbo
            --break-before-boolean-operator                 -bbo
            --break-function-decl-args                      -bfda
            --break-function-decl-args-end                  -bfde
            --case-indentation                              -clin
            --case-brace-indentation                        -cbin
            --comment-delimiters-on-blank-lines             -cdb
            --comment-indentation                           -cn
            --continuation-indentation                      -cin
            --continue-at-parentheses                       -lp
            --cuddle-do-while                               -cdw
            --cuddle-else                                   -ce
            --declaration-comment-column                    -cdn
            --declaration-indentation                       -din
            --dont-break-function-decl-args                 -nbfda
            --dont-break-function-decl-args-end             -nbfde
            --dont-break-procedure-type                     -npsl
            --dont-cuddle-do-while                          -ncdw
            --dont-cuddle-else                              -nce
            --dont-format-comments                          -nfca
            --dont-format-first-column-comments             -nfc1
            --dont-line-up-parentheses                      -nlp
            --dont-space-special-semicolon                  -nss
            --dont-star-comments                            -nsc
            --else-endif-column                             -cpn
            --format-all-comments                           -fca
            --format-first-column-comments                  -fc1
            --gnu-style                                     -gnu
            --honour-newlines                               -hnl
            --ignore-newlines                               -nhnl
            --ignore-profile                                -npro
            --indent-level                                  -in
            --k-and-r-style                                 -kr
            --leave-optional-blank-lines                    -nsob
            --leave-preprocessor-space                      -lps
            --line-comments-indentation                     -dn
            --line-length                                   -ln
            --no-blank-lines-after-commas                   -nbc
            --no-blank-lines-after-declarations             -nbad
            --no-blank-lines-after-procedures               -nbap
            --no-blank-lines-before-block-comments          -nbbb
            --no-comment-delimiters-on-blank-lines          -ncdb
            --no-space-after-casts                          -ncs
            --no-parameter-indentation                      -nip
            --no-space-after-for                            -nsaf
            --no-space-after-function-call-names            -npcs
            --no-space-after-if                             -nsai
            --no-space-after-parentheses                    -nprs
            --no-space-after-while                          -nsaw
            --no-tabs                                       -nut
            --no-verbosity                                  -nv
            --original                                      -orig
            --parameter-indentation                         -ipn
            --paren-indentation                             -pin
            --preserve-mtime                                -pmt
            --procnames-start-lines                         -psl
            --space-after-cast                              -cs
            --space-after-for                               -saf
            --space-after-if                                -sai
            --space-after-parentheses                       -prs
            --space-after-procedure-calls                   -pcs
            --space-after-while                             -saw
            --space-special-semicolon                       -ss
            --standard-output                               -st
            --start-left-side-of-comments                   -sc
            --struct-brace-indentation                      -sbin
            --swallow-optional-blank-lines                  -sob
            --tab-size                                      -tsn
            --use-tabs                                      -ut
            --verbose                                       -v

       $HOME/.indent.pro   indent

       Carlo Wood
       Joseph Arceneaux
       Jim Kingdon
       David Ingamells

       UCB  "indent"

       Copyright  (C)  1989,  1992,  1993,  1994,  1995,  1996  Free  Software
       Foundation, Inc.  Copyright (C) 1995, 1996 Joseph Arceneaux.  Copyright
       (C) 1999 Carlo Wood.  Copyright (C) 2001 David Ingamells.

       Permission  is  granted  to make and distribute verbatim copies of this
       manual provided the copyright notice and  this  permission  notice  are
       preserved on all copies.

                                                                    INDENT(1L)