IMDENT manual page

Table of Contents


imdent -indent cpp directives to show nesting level


imdent [ -n ] [ file ] ...


imdent reads the named input file(s), or the standard input if no files are named, and adds indentation to cpp directives based on the nesting level of conditional directives. This visually shows the nesting as an aid to finding malformed conditional constructs and can be helpful when debugging imake configuration files.

imdent understands the following option:

Specify indentation increment per nesting level. n is a number. The default is 2 spaces. -0 removes all indentation.


Given the following input:
imdent produces the following output:


Paul DuBois,