![]() |
![]()
| ![]() |
![]()
NAMEcppi - indent the C preprocessor directives in FILE to reflect their nestingSYNOPSIScppi [FILE]cppi -c [OPTION] [FILE]... DESCRIPTIONIndent the C preprocessor directives in FILE to reflect their nesting and ensure that there is exactly one space character between each #if, #elif, #define directive and the following token, and write the result to standard output. The number of spaces between the `#' and the following directive must correspond to the level of nesting of that directive. With no FILE, or when FILE is -, read standard input.
With the -c option, don't write to stdout. Instead, check the indentation of the specified files giving diagnostics for preprocessor lines that aren't properly indented or are otherwise invalid. Note that --ansi without --check does not correct the problem of non-ANSI text following #else and #endif directives. The exit code will be one of these:
A pragma directive may have its `#' indented. AUTHORWritten by Jim Meyering.REPORTING BUGSReport bugs to <bug-cppi@gnu.org>.COPYRIGHTCopyright © 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. SEE ALSOThe full documentation for cppi is maintained as a Texinfo manual. If the info and cppi programs are properly installed at your site, the command
should give you access to the complete manual.
|