Code Beautification
This is the home page for the GNU indent tool.
Indent is a tool for formatting C code.
GNU
Indent documentation
Download latest version of GNU Indent
NOTE: Indent is designed to support the C language. It is NOT, repeat NOT, designed to work with C++.
It may work with some C++ code but you are on your own: usage of indent on C++ is not supported, so
DO NOT complain if it doesn't work on your C++ code.
indent-2.2.11.tar.gz
A windows version of indent can be obtained from
http://gnuwin32.sourceforge.net
The tarball comes with html, man and texinfo documentation. Additionally you can download
the documentation in postscript.
Version 2.2.11 is a bugfix release.
- Regression with --blank-lines-after-declarations in 2.2.10
- Fail instead of removing embedded NULLs in input files.
- handling of '...' range operator in C++ language.
- -nlps option
The major changes between version 2.2.9 and 2.2.10 are
- Added GPL version 3
- Added --indent-label and --linux-style options to control indentation of goto labels and
supply a canned set of settings that closely matches the preferred style for the linux kernel.
- Bug fixes.
The major changes between version 2.2.8 and 2.2.9 are
- Resolution of changes in the latest version of gettext (they keep changing the interface).
- Added option --break-function-decl-args-end
(bfde) to break the function arguments list before the closing bracket.
-bdfa now causes a break after the opening bracket and before the first
argument so that the first argument and subsequent argments are indented
one indentation step instead of being aligned with the opening bracket.
- Added --preprocessor-indentation (- ppi n). If set, will indent nested
preprocessor-statements with n spaces per level.
- Added support for -brf to place the function opening brace after the function
declaration.
- Bug fixes.
Version 2.2.8a has a small fix for running texinfo2man.
If you have a built version then there is no need to download this version.
The major changes between version 2.2.7 and 2.2.8 are
- Resolution of some build problems with gettext.
- The environment variable INDENT_PROFILE can be used to specify a profile file.
- Bug fixes.
The major changes between version 2.2.6 and 2.2.7 are
- Support for I18N (internationalisation) with gettext.
- Tarball directory restructuring.
- Bug fixes
Download the previous versions of GNU Indent
indent-2.2.10.tar.gz
indent-2.2.9.tar.gz
indent-2.2.8a.tar.gz
indent-2.2.8.tar.gz
indent-2.2.7.tar.gz
GNU Indent can also be downloaded from The
GNU Website or from any of the many mirror of that site.
Problems?
Report bugs or make suggestions to: bug-indent@gnu.org
Useful Addresses
The GNU Website
The GNU Indent mail list page.