Debian Codegraph @

man/cppi.1

raw
1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.12.
2 .TH CPPI "1" "March 2013" "cppi 1.18" "User Commands"
3 .SH NAME
4 cppi \- indent the C preprocessor directives in FILE to reflect their nesting
5 .SH SYNOPSIS
6 .B cppi
7 [\fIFILE\fR]
8 .br
9 .B cppi
10 \fI-c \fR[\fIOPTION\fR] [\fIFILE\fR]...
11 .SH DESCRIPTION
12 .\" Add any additional description here
13 .PP
14 Indent the C preprocessor directives in FILE to reflect their nesting
15 and ensure that there is exactly one space character between each #if,
16 #elif, #define directive and the following token, and write the result
17 to standard output. The number of spaces between the `#' and the following
18 directive must correspond to the level of nesting of that directive.
19 With no FILE, or when FILE is \-, read standard input.
20 .TP
21 \fB\-a\fR, \fB\-\-ansi\fR
22 when checking, fail if text follows #else or #endif
23 .TP
24 \fB\-c\fR, \fB\-\-check\fR
25 set exit code, but don't produce any output
26 .TP
27 \fB\-l\fR, \fB\-\-list\-files\-only\fR
28 don't generate diagnostics about indentation;
29 print to stdout only the names of files that
30 are not properly indented
31 .TP
32 \fB\-m\fR, \fB\-\-max\-string\-length\fR=\fILENGTH\fR
33 fail if there is a double\-quoted string longer
34 than LENGTH; if LENGTH is 0 (the default),
35 then there is no limit
36 .TP
37 \fB\-\-help\fR
38 display this help and exit
39 .TP
40 \fB\-\-version\fR
41 output version information and exit
42 .PP
43 With the \fB\-c\fR option, don't write to stdout. Instead, check the
44 indentation of the specified files giving diagnostics for preprocessor
45 lines that aren't properly indented or are otherwise invalid.
46 .PP
47 Note that \fB\-\-ansi\fR without \fB\-\-check\fR does not correct the problem of
48 non\-ANSI text following #else and #endif directives.
49 .SS "The exit code will be one of these:"
50 .TP
51 0
52 all directives properly indented
53 .TP
54 1
55 some cpp directive(s) improperly indented, or
56 text follows #else/#endif (enabled with \fB\-\-check\fR \fB\-\-ansi\fR), or
57 a double\-quoted string is longer than the specified maximum
58 .TP
59 2
60 #if/#endif mismatch, EOF in comment or string
61 .TP
62 3
63 file (e.g. open/read/write) error
64 .PP
65 A pragma directive may have its `#' indented.
66 .SH AUTHOR
67 Written by Jim Meyering.
68 .SH "REPORTING BUGS"
69 Report bugs to <bug\[email protected]>.
70 .SH COPYRIGHT
71 Copyright \(co 2013 Free Software Foundation, Inc.
72 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
73 .br
74 This is free software: you are free to change and redistribute it.
75 There is NO WARRANTY, to the extent permitted by law.
76 .SH "SEE ALSO"
77 The full documentation for
78 .B cppi
79 is maintained as a Texinfo manual. If the
80 .B info
81 and
82 .B cppi
83 programs are properly installed at your site, the command
84 .IP
85 .B info cppi
86 .PP
87 should give you access to the complete manual.