summaryrefslogtreecommitdiffstats
path: root/doc/scripts/man-fixincludes.1.docbook
blob: 31c1b546dc6b5e1391b17298e682890e69763876 (plain)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?xml version="1.0" ?>
<!DOCTYPE refentry PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
<!ENTITY % English "INCLUDE">
]>

<refentry lang="&language;">
<refentryinfo>
<author><personname><firstname>Ben</firstname><surname>Burton</surname></personname>
<email>bab@debian.org</email></author>
<date>April 7, 2003</date>
</refentryinfo>

<refmeta>
<refentrytitle><command>fixincludes</command></refentrytitle>
<manvolnum>1</manvolnum>
</refmeta>

<refnamediv>
<refname><command>fixincludes</command></refname>
<refpurpose>Reduce the number of #includes in &kde; source files</refpurpose>
</refnamediv>

<refsynopsisdiv>
<cmdsynopsis>
<command>fixincludes</command>
<group><option>-v, --verbose</option></group>
<group><option>-e, --experimental</option></group>
<group><option>-m, --modify</option></group>
<group><option><replaceable>file</replaceable></option></group>
<group><option>--help</option></group>
</cmdsynopsis>
</refsynopsisdiv>

<refsect1>
<title>Description</title>

<para><command>fixincludes</command> tries to reduce the number of
#includes in C++ source files.  Much of it's processing is specific to
&kde; sources and so it might not work so well with sources for
non-&kde; applications.</para>

<para>The following problems are identified by <command>fixincludes</command>:</para>

<itemizedlist>
<listitem>
<para>Including headers that are no longer supported but which exist for compatibility with older Qt/KDE versions;</para>
</listitem>
<listitem>
<para>Including the same file multiple times. </para>
</listitem>
</itemizedlist>

<para>There is also an experimental mode which tries removing each
#include one at a time (with a few exceptions) to see whether the
source still compiles. Note that this experimental mode will modify
the original sources. </para>

<para>By default the sources will not be modified; the identified
problems will simply be written to standard output. </para>

<para>The list of C++ sources to examine should be given on the
command-line. If no files are given, all C++ sources in or beneath the
current directory will be examined (with the exception of directories
whose <filename>Makefile.am</filename> contains
<option>-UKDE_NO_COMPAT</option>)</para>

<para>This utility is part of the KDE Software Development Kit. </para>

</refsect1>

<refsect1>
<title>Options</title>

<variablelist>
<varlistentry>
<term><option>-v, --verbose</option></term>
<listitem><para>Verbose mode.  Additional debugging output is written to standard output.</para></listitem>
</varlistentry>
<varlistentry>
<term><option>-e, --experimental</option></term>
<listitem><para>Experimental mode, as described above in detail. Note that this option implies <option>--modify</option>.</para></listitem>
</varlistentry>
<varlistentry>
<term><option>-m, --modify</option></term>
<listitem><para>As well as writing messages to standard output, actually modify the original sources to fix any problems that were found.</para></listitem>
</varlistentry>
</variablelist>

</refsect1>

<refsect1>
<title>Authors</title>
<para><command>fixincludes</command> was written by Dirk Mueller <email>mueller@kde.org</email>. 
</para>
</refsect1>

</refentry>