-
Notifications
You must be signed in to change notification settings - Fork 10
/
amalgamate.1
64 lines (60 loc) · 1.86 KB
/
amalgamate.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
.TH AMALGAMATE "1" "August 2016" "amalgamate 0.2.0" "User Commands"
.SH NAME
amalgamate \- produce an amalgamation of C/C++ source files
.SH SYNOPSIS
amalgamate
[\-s]
[\-w {wildcards}]
[\-f {file|macro}]...
[\-p {file|macro}]...
[\-d {name}={file}]...
[\-i {dir}]...
[\-v]
{inputFile} {outputFile}
.SH DESCRIPTION
Produces an amalgamation of {inputFile} by replacing #include statements with
the contents of the file they refer to. This replacement will only occur if
the file was located in the same directory, or one of the additional include
paths added with the \fB\-i\fR option.
Files included in angle brackets (system includes) are only inlined if the
\fB\-s\fR option is specified.
If an #include line contains a macro instead of a string literal, the list
of definitions provided through the \fB\-d\fR option is consulted to convert the
macro into a string.
A file will only be inlined once, with subsequent #include lines for the same
file silently ignored, unless the \fB\-f\fR option is specified for the file.
.SH OPTIONS
.TP
\fB\-s\fR
Process #include lines containing angle brackets (i.e.
system includes). Normally these are not inlined.
.TP
\fB\-t\fR
Convert spaces into tabs.
.TP
\fB\-w\fR {wildcards}
Specify a comma separated list of file name patterns to
match when deciding to inline (assuming the file can be
located). The default setting is "*.cpp;*.c;*.hpp;*.h".
.TP
\fB\-f\fR {file|macro}
Force reinclusion of the specified file or macro on
all appearances in #include lines.
.TP
\fB\-p\fR {file|macro}
Prevent reinclusion of the specified file or macro on
subsequent appearances in #include lines.
.TP
\fB\-d\fR {name}={file}
Use {file} for macro {name} if it appears in an #include
line.
.TP
\fB\-i\fR {dir}
Additionally look in the specified directory for files when
processing #include lines.
.TP
\fB\-h\fR
Print this help and exit
.TP
\fB\-v\fR
Verbose output mode