]> CyberLeo.Net >> Repos - FreeBSD/releng/9.0.git/blob - usr.bin/clang/clang/clang.1
Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
[FreeBSD/releng/9.0.git] / usr.bin / clang / clang / clang.1
1 .\" $FreeBSD$
2 .\" Automatically generated by Pod::Man 2.23 (Pod::Simple 3.14)
3 .\"
4 .\" Standard preamble:
5 .\" ========================================================================
6 .de Sp \" Vertical space (when we can't use .PP)
7 .if t .sp .5v
8 .if n .sp
9 ..
10 .de Vb \" Begin verbatim text
11 .ft CW
12 .nf
13 .ne \\$1
14 ..
15 .de Ve \" End verbatim text
16 .ft R
17 .fi
18 ..
19 .\" Set up some character translations and predefined strings.  \*(-- will
20 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
21 .\" double quote, and \*(R" will give a right double quote.  \*(C+ will
22 .\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
23 .\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
24 .\" nothing in troff, for use with C<>.
25 .tr \(*W-
26 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
27 .ie n \{\
28 .    ds -- \(*W-
29 .    ds PI pi
30 .    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
31 .    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
32 .    ds L" ""
33 .    ds R" ""
34 .    ds C` ""
35 .    ds C' ""
36 'br\}
37 .el\{\
38 .    ds -- \|\(em\|
39 .    ds PI \(*p
40 .    ds L" ``
41 .    ds R" ''
42 'br\}
43 .\"
44 .\" Escape single quotes in literal strings from groff's Unicode transform.
45 .ie \n(.g .ds Aq \(aq
46 .el       .ds Aq '
47 .\"
48 .\" If the F register is turned on, we'll generate index entries on stderr for
49 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
50 .\" entries marked with X<> in POD.  Of course, you'll have to process the
51 .\" output yourself in some meaningful fashion.
52 .ie \nF \{\
53 .    de IX
54 .    tm Index:\\$1\t\\n%\t"\\$2"
55 ..
56 .    nr % 0
57 .    rr F
58 .\}
59 .el \{\
60 .    de IX
61 ..
62 .\}
63 .\"
64 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
65 .\" Fear.  Run.  Save yourself.  No user-serviceable parts.
66 .    \" fudge factors for nroff and troff
67 .if n \{\
68 .    ds #H 0
69 .    ds #V .8m
70 .    ds #F .3m
71 .    ds #[ \f1
72 .    ds #] \fP
73 .\}
74 .if t \{\
75 .    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
76 .    ds #V .6m
77 .    ds #F 0
78 .    ds #[ \&
79 .    ds #] \&
80 .\}
81 .    \" simple accents for nroff and troff
82 .if n \{\
83 .    ds ' \&
84 .    ds ` \&
85 .    ds ^ \&
86 .    ds , \&
87 .    ds ~ ~
88 .    ds /
89 .\}
90 .if t \{\
91 .    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
92 .    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
93 .    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
94 .    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
95 .    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
96 .    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
97 .\}
98 .    \" troff and (daisy-wheel) nroff accents
99 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
100 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
101 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
102 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
103 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
104 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
105 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
106 .ds ae a\h'-(\w'a'u*4/10)'e
107 .ds Ae A\h'-(\w'A'u*4/10)'E
108 .    \" corrections for vroff
109 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
110 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
111 .    \" for low resolution devices (crt and lpr)
112 .if \n(.H>23 .if \n(.V>19 \
113 \{\
114 .    ds : e
115 .    ds 8 ss
116 .    ds o a
117 .    ds d- d\h'-1'\(ga
118 .    ds D- D\h'-1'\(hy
119 .    ds th \o'bp'
120 .    ds Th \o'LP'
121 .    ds ae ae
122 .    ds Ae AE
123 .\}
124 .rm #[ #] #H #V #F C
125 .\" ========================================================================
126 .\"
127 .IX Title "CLANG 1"
128 .TH CLANG 1 "2011-10-17" "clang 3.0" "Clang Tools Documentation"
129 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
130 .\" way too many mistakes in technical documents.
131 .if n .ad l
132 .nh
133 .SH "NAME"
134 clang \- the Clang C, C++, and Objective\-C compiler
135 .SH "SYNOPSIS"
136 .IX Header "SYNOPSIS"
137 \&\fBclang\fR [\fB\-c\fR|\fB\-S\fR|\fB\-E\fR] \fB\-std=\fR\fIstandard\fR \fB\-g\fR
138   [\fB\-O0\fR|\fB\-O1\fR|\fB\-O2\fR|\fB\-Os\fR|\fB\-Oz\fR|\fB\-O3\fR|\fB\-O4\fR]
139   \fB\-W\fR\fIwarnings...\fR \fB\-pedantic\fR
140   \fB\-I\fR\fIdir...\fR \fB\-L\fR\fIdir...\fR
141   \fB\-D\fR\fImacro[=defn]\fR
142   \fB\-f\fR\fIfeature-option...\fR
143   \fB\-m\fR\fImachine-option...\fR
144   \fB\-o\fR \fIoutput-file\fR
145   \fB\-stdlib=\fR\fIlibrary\fR 
146   \fIinput-filenames\fR
147 .SH "DESCRIPTION"
148 .IX Header "DESCRIPTION"
149 \&\fBclang\fR is a C, \*(C+, and Objective-C compiler which encompasses preprocessing,
150 parsing, optimization, code generation, assembly, and linking.  Depending on
151 which high-level mode setting is passed, Clang will stop before doing a full
152 link.  While Clang is highly integrated, it is important to understand the
153 stages of compilation, to understand how to invoke it.  These stages are:
154 .IP "\fBDriver\fR" 4
155 .IX Item "Driver"
156 The \fBclang\fR executable is actually a small driver which controls the overall
157 execution of other tools such as the compiler, assembler and linker.  Typically
158 you do not need to interact with the driver, but you transparently use it to run
159 the other tools.
160 .IP "\fBPreprocessing\fR" 4
161 .IX Item "Preprocessing"
162 This stage handles tokenization of the input source file, macro expansion,
163 #include expansion and handling of other preprocessor directives.  The output of
164 this stage is typically called a \*(L".i\*(R" (for C), \*(L".ii\*(R" (for \*(C+), \*(L".mi\*(R" (for 
165 Objective-C) , or \*(L".mii\*(R" (for Objective\-\*(C+) file.
166 .IP "\fBParsing and Semantic Analysis\fR" 4
167 .IX Item "Parsing and Semantic Analysis"
168 This stage parses the input file, translating preprocessor tokens into a parse
169 tree.  Once in the form of a parser tree, it applies semantic analysis to compute
170 types for expressions as well and determine whether the code is well formed. This
171 stage is responsible for generating most of the compiler warnings as well as
172 parse errors.  The output of this stage is an \*(L"Abstract Syntax Tree\*(R" (\s-1AST\s0).
173 .IP "\fBCode Generation and Optimization\fR" 4
174 .IX Item "Code Generation and Optimization"
175 This stage translates an \s-1AST\s0 into low-level intermediate code (known as \*(L"\s-1LLVM\s0
176 \&\s-1IR\s0\*(R") and ultimately to machine code.  This phase is responsible for optimizing
177 the generated code and handling target-specific code generation.  The output of
178 this stage is typically called a \*(L".s\*(R" file or \*(L"assembly\*(R" file.
179 .Sp
180 Clang also supports the use of an integrated assembler, in which the code
181 generator produces object files directly. This avoids the overhead of generating
182 the \*(L".s\*(R" file and of calling the target assembler.
183 .IP "\fBAssembler\fR" 4
184 .IX Item "Assembler"
185 This stage runs the target assembler to translate the output of the compiler
186 into a target object file.  The output of this stage is typically called a \*(L".o\*(R"
187 file or \*(L"object\*(R" file.
188 .IP "\fBLinker\fR" 4
189 .IX Item "Linker"
190 This stage runs the target linker to merge multiple object files into an
191 executable or dynamic library.  The output of this stage is typically called an
192 \&\*(L"a.out\*(R", \*(L".dylib\*(R" or \*(L".so\*(R" file.
193 .PP
194 The Clang compiler supports a large number of options to control each of these
195 stages.  In addition to compilation of code, Clang also supports other tools:
196 .PP
197 \&\fBClang Static Analyzer\fR
198 .PP
199 The Clang Static Analyzer is a tool that scans source code to try to find bugs
200 through code analysis.  This tool uses many parts of Clang and is built into the
201 same driver.
202 .SH "OPTIONS"
203 .IX Header "OPTIONS"
204 .SS "Stage Selection Options"
205 .IX Subsection "Stage Selection Options"
206 .IP "\fB\-E\fR" 4
207 .IX Item "-E"
208 Run the preprocessor stage.
209 .IP "\fB\-fsyntax\-only\fR" 4
210 .IX Item "-fsyntax-only"
211 Run the preprocessor, parser and type checking stages.
212 .IP "\fB\-S\fR" 4
213 .IX Item "-S"
214 Run the previous stages as well as \s-1LLVM\s0 generation and optimization stages and
215 target-specific code generation, producing an assembly file.
216 .IP "\fB\-c\fR" 4
217 .IX Item "-c"
218 Run all of the above, plus the assembler, generating a target \*(L".o\*(R" object file.
219 .IP "\fBno stage selection option\fR" 4
220 .IX Item "no stage selection option"
221 If no stage selection option is specified, all stages above are run, and the
222 linker is run to combine the results into an executable or shared library.
223 .IP "\fB\-\-analyze\fR" 4
224 .IX Item "--analyze"
225 Run the Clang Static Analyzer.
226 .SS "Language Selection and Mode Options"
227 .IX Subsection "Language Selection and Mode Options"
228 .IP "\fB\-x\fR \fIlanguage\fR" 4
229 .IX Item "-x language"
230 Treat subsequent input files as having type \fIlanguage\fR.
231 .IP "\fB\-std\fR=\fIlanguage\fR" 4
232 .IX Item "-std=language"
233 Specify the language standard to compile for.
234 .IP "\fB\-stdlib\fR=\fIlanguage\fR" 4
235 .IX Item "-stdlib=language"
236 Specify the \*(C+ standard library to use; supported options are libstdc++ and
237 libc++.
238 .IP "\fB\-ansi\fR" 4
239 .IX Item "-ansi"
240 Same as \fB\-std=c89\fR.
241 .IP "\fB\-ObjC++\fR" 4
242 .IX Item "-ObjC++"
243 Treat source input files as Objective\-\*(C+ inputs.
244 .IP "\fB\-ObjC\fR" 4
245 .IX Item "-ObjC"
246 Treat source input files as Objective-C inputs.
247 .IP "\fB\-trigraphs\fR" 4
248 .IX Item "-trigraphs"
249 Enable trigraphs.
250 .IP "\fB\-ffreestanding\fR" 4
251 .IX Item "-ffreestanding"
252 Indicate that the file should be compiled for a freestanding, not a hosted,
253 environment.
254 .IP "\fB\-fno\-builtin\fR" 4
255 .IX Item "-fno-builtin"
256 Disable special handling and optimizations of builtin functions like strlen and
257 malloc.
258 .IP "\fB\-fmath\-errno\fR" 4
259 .IX Item "-fmath-errno"
260 Indicate that math functions should be treated as updating errno.
261 .IP "\fB\-fpascal\-strings\fR" 4
262 .IX Item "-fpascal-strings"
263 Enable support for Pascal-style strings with \*(L"\epfoo\*(R".
264 .IP "\fB\-fms\-extensions\fR" 4
265 .IX Item "-fms-extensions"
266 Enable support for Microsoft extensions.
267 .IP "\fB\-fmsc\-version=\fR" 4
268 .IX Item "-fmsc-version="
269 Set _MSC_VER. Defaults to 1300 on Windows. Not set otherwise.
270 .IP "\fB\-fborland\-extensions\fR" 4
271 .IX Item "-fborland-extensions"
272 Enable support for Borland extensions.
273 .IP "\fB\-fwritable\-strings\fR" 4
274 .IX Item "-fwritable-strings"
275 Make all string literals default to writable.  This disables uniquing of
276 strings and other optimizations.
277 .IP "\fB\-flax\-vector\-conversions\fR" 4
278 .IX Item "-flax-vector-conversions"
279 Allow loose type checking rules for implicit vector conversions.
280 .IP "\fB\-fblocks\fR" 4
281 .IX Item "-fblocks"
282 Enable the \*(L"Blocks\*(R" language feature.
283 .IP "\fB\-fobjc\-gc\-only\fR" 4
284 .IX Item "-fobjc-gc-only"
285 Indicate that Objective-C code should be compiled in GC-only mode, which only
286 works when Objective-C Garbage Collection is enabled.
287 .IP "\fB\-fobjc\-gc\fR" 4
288 .IX Item "-fobjc-gc"
289 Indicate that Objective-C code should be compiled in hybrid-GC mode, which works
290 with both \s-1GC\s0 and non-GC mode.
291 .IP "\fB\-fobjc\-abi\-version\fR=\fIversion\fR" 4
292 .IX Item "-fobjc-abi-version=version"
293 Select the Objective-C \s-1ABI\s0 version to use. Available versions are 1 (legacy
294 \&\*(L"fragile\*(R" \s-1ABI\s0), 2 (non-fragile \s-1ABI\s0 1), and 3 (non-fragile \s-1ABI\s0 2).
295 .IP "\fB\-fobjc\-nonfragile\-abi\-version\fR=\fIversion\fR" 4
296 .IX Item "-fobjc-nonfragile-abi-version=version"
297 Select the Objective-C non-fragile \s-1ABI\s0 version to use by default. This will only
298 be used as the Objective-C \s-1ABI\s0 when the non-fragile \s-1ABI\s0 is enabled (either via
299 \&\-fobjc\-nonfragile\-abi, or because it is the platform default).
300 .IP "\fB\-fobjc\-nonfragile\-abi\fR" 4
301 .IX Item "-fobjc-nonfragile-abi"
302 Enable use of the Objective-C non-fragile \s-1ABI\s0. On platforms for which this is
303 the default \s-1ABI\s0, it can be disabled with \fB\-fno\-objc\-nonfragile\-abi\fR.
304 .SS "Target Selection Options"
305 .IX Subsection "Target Selection Options"
306 Clang fully supports cross compilation as an inherent part of its design.
307 Depending on how your version of Clang is configured, it may have support for
308 a number of cross compilers, or may only support a native target.
309 .IP "\fB\-arch\fR \fIarchitecture\fR" 4
310 .IX Item "-arch architecture"
311 Specify the architecture to build for.
312 .IP "\fB\-mmacosx\-version\-min\fR=\fIversion\fR" 4
313 .IX Item "-mmacosx-version-min=version"
314 When building for Mac \s-1OS/X\s0, specify the minimum version supported by your
315 application.
316 .IP "\fB\-miphoneos\-version\-min\fR" 4
317 .IX Item "-miphoneos-version-min"
318 When building for iPhone \s-1OS\s0, specify the minimum version supported by your
319 application.
320 .IP "\fB\-march\fR=\fIcpu\fR" 4
321 .IX Item "-march=cpu"
322 Specify that Clang should generate code for a specific processor family member
323 and later.  For example, if you specify \-march=i486, the compiler is allowed to
324 generate instructions that are valid on i486 and later processors, but which
325 may not exist on earlier ones.
326 .SS "Code Generation Options"
327 .IX Subsection "Code Generation Options"
328 .IP "\fB\-O0\fR \fB\-O1\fR \fB\-O2\fR \fB\-Os\fR \fB\-Oz\fR \fB\-O3\fR \fB\-O4\fR" 4
329 .IX Item "-O0 -O1 -O2 -Os -Oz -O3 -O4"
330 Specify which optimization level to use.  \fB\-O0\fR means \*(L"no optimization\*(R": this
331 level compiles the fastest and generates the most debuggable code.  \fB\-O2\fR is a
332 moderate level of optimization which enables most optimizations.  \fB\-Os\fR is like
333 \&\fB\-O2\fR with extra optimizations to reduce code size.  \fB\-Oz\fR is like \fB\-Os\fR 
334 (and thus \fB\-O2\fR), but reduces code size further.  \fB\-O3\fR is like \fB\-O2\fR,
335 except that it enables optimizations that take longer to perform or that may
336 generate larger code (in an attempt to make the program run faster).  On
337 supported platforms, \fB\-O4\fR enables link-time optimization; object files are
338 stored in the \s-1LLVM\s0 bitcode file format and whole program optimization is done at
339 link time. \fB\-O1\fR is somewhere between \fB\-O0\fR and \fB\-O2\fR.
340 .IP "\fB\-g\fR" 4
341 .IX Item "-g"
342 Generate debug information.  Note that Clang debug information works best at
343 \&\fB\-O0\fR.  At higher optimization levels, only line number information is
344 currently available.
345 .IP "\fB\-fexceptions\fR" 4
346 .IX Item "-fexceptions"
347 Enable generation of unwind information, this allows exceptions to be thrown
348 through Clang compiled stack frames.  This is on by default in x86\-64.
349 .IP "\fB\-ftrapv\fR" 4
350 .IX Item "-ftrapv"
351 Generate code to catch integer overflow errors.  Signed integer overflow is
352 undefined in C, with this flag, extra code is generated to detect this and abort
353 when it happens.
354 .IP "\fB\-fvisibility\fR" 4
355 .IX Item "-fvisibility"
356 This flag sets the default visibility level.
357 .IP "\fB\-fcommon\fR" 4
358 .IX Item "-fcommon"
359 This flag specifies that variables without initializers get common linkage.  It
360 can be disabled with \fB\-fno\-common\fR.
361 .IP "\fB\-flto\fR \fB\-emit\-llvm\fR" 4
362 .IX Item "-flto -emit-llvm"
363 Generate output files in \s-1LLVM\s0 formats, suitable for link time optimization. When
364 used with \fB\-S\fR this generates \s-1LLVM\s0 intermediate language assembly files,
365 otherwise this generates \s-1LLVM\s0 bitcode format object files (which may be passed
366 to the linker depending on the stage selection options).
367 .SS "Driver Options"
368 .IX Subsection "Driver Options"
369 .IP "\fB\-###\fR" 4
370 .IX Item "-###"
371 Print the commands to run for this compilation.
372 .IP "\fB\-\-help\fR" 4
373 .IX Item "--help"
374 Display available options.
375 .IP "\fB\-Qunused\-arguments\fR" 4
376 .IX Item "-Qunused-arguments"
377 Don't emit warning for unused driver arguments.
378 .IP "\fB\-Wa,\fR\fIargs\fR" 4
379 .IX Item "-Wa,args"
380 Pass the comma separated arguments in \fIargs\fR to the assembler.
381 .IP "\fB\-Wl,\fR\fIargs\fR" 4
382 .IX Item "-Wl,args"
383 Pass the comma separated arguments in \fIargs\fR to the linker.
384 .IP "\fB\-Wp,\fR\fIargs\fR" 4
385 .IX Item "-Wp,args"
386 Pass the comma separated arguments in \fIargs\fR to the preprocessor.
387 .IP "\fB\-Xanalyzer\fR \fIarg\fR" 4
388 .IX Item "-Xanalyzer arg"
389 Pass \fIarg\fR to the static analyzer.
390 .IP "\fB\-Xassembler\fR \fIarg\fR" 4
391 .IX Item "-Xassembler arg"
392 Pass \fIarg\fR to the assembler.
393 .IP "\fB\-Xlinker\fR \fIarg\fR" 4
394 .IX Item "-Xlinker arg"
395 Pass \fIarg\fR to the linker.
396 .IP "\fB\-Xpreprocessor\fR \fIarg\fR" 4
397 .IX Item "-Xpreprocessor arg"
398 Pass \fIarg\fR to the preprocessor.
399 .IP "\fB\-o\fR \fIfile\fR" 4
400 .IX Item "-o file"
401 Write output to \fIfile\fR.
402 .IP "\fB\-print\-file\-name\fR=\fIfile\fR" 4
403 .IX Item "-print-file-name=file"
404 Print the full library path of \fIfile\fR.
405 .IP "\fB\-print\-libgcc\-file\-name\fR" 4
406 .IX Item "-print-libgcc-file-name"
407 Print the library path for \*(L"libgcc.a\*(R".
408 .IP "\fB\-print\-prog\-name\fR=\fIname\fR" 4
409 .IX Item "-print-prog-name=name"
410 Print the full program path of \fIname\fR.
411 .IP "\fB\-print\-search\-dirs\fR" 4
412 .IX Item "-print-search-dirs"
413 Print the paths used for finding libraries and programs.
414 .IP "\fB\-save\-temps\fR" 4
415 .IX Item "-save-temps"
416 Save intermediate compilation results.
417 .IP "\fB\-integrated\-as\fR \fB\-no\-integrated\-as\fR" 4
418 .IX Item "-integrated-as -no-integrated-as"
419 Used to enable and disable, respectively, the use of the integrated
420 assembler. Whether the integrated assembler is on by default is target
421 dependent.
422 .IP "\fB\-time\fR" 4
423 .IX Item "-time"
424 Time individual commands.
425 .IP "\fB\-ftime\-report\fR" 4
426 .IX Item "-ftime-report"
427 Print timing summary of each stage of compilation.
428 .IP "\fB\-v\fR" 4
429 .IX Item "-v"
430 Show commands to run and use verbose output.
431 .SS "Diagnostics Options"
432 .IX Subsection "Diagnostics Options"
433 .IP "\fB\-fshow\-column\fR \fB\-fshow\-source\-location\fR \fB\-fcaret\-diagnostics\fR \fB\-fdiagnostics\-fixit\-info\fR \fB\-fdiagnostics\-parseable\-fixits\fR \fB\-fdiagnostics\-print\-source\-range\-info\fR \fB\-fprint\-source\-range\-info\fR \fB\-fdiagnostics\-show\-option\fR \fB\-fmessage\-length\fR" 4
434 .IX Item "-fshow-column -fshow-source-location -fcaret-diagnostics -fdiagnostics-fixit-info -fdiagnostics-parseable-fixits -fdiagnostics-print-source-range-info -fprint-source-range-info -fdiagnostics-show-option -fmessage-length"
435 These options control how Clang prints out information about diagnostics (errors
436 and warnings).  Please see the Clang User's Manual for more information.
437 .SS "Preprocessor Options"
438 .IX Subsection "Preprocessor Options"
439 .IP "\fB\-D\fR\fImacroname=value\fR" 4
440 .IX Item "-Dmacroname=value"
441 Adds an implicit #define into the predefines buffer which is read before the
442 source file is preprocessed.
443 .IP "\fB\-U\fR\fImacroname\fR" 4
444 .IX Item "-Umacroname"
445 Adds an implicit #undef into the predefines buffer which is read before the
446 source file is preprocessed.
447 .IP "\fB\-include\fR \fIfilename\fR" 4
448 .IX Item "-include filename"
449 Adds an implicit #include into the predefines buffer which is read before the
450 source file is preprocessed.
451 .IP "\fB\-I\fR\fIdirectory\fR" 4
452 .IX Item "-Idirectory"
453 Add the specified directory to the search path for include files.
454 .IP "\fB\-F\fR\fIdirectory\fR" 4
455 .IX Item "-Fdirectory"
456 Add the specified directory to the search path for framework include files.
457 .IP "\fB\-nostdinc\fR" 4
458 .IX Item "-nostdinc"
459 Do not search the standard system directories or compiler builtin directories
460 for include files.
461 .IP "\fB\-nostdlibinc\fR" 4
462 .IX Item "-nostdlibinc"
463 Do not search the standard system directories for include files, but do search
464 compiler builting include directories.
465 .IP "\fB\-nobuiltininc\fR" 4
466 .IX Item "-nobuiltininc"
467 Do not search clang's builtin directory for include files.
468 .SH "ENVIRONMENT"
469 .IX Header "ENVIRONMENT"
470 .IP "\fB\s-1TMPDIR\s0\fR, \fB\s-1TEMP\s0\fR, \fB\s-1TMP\s0\fR" 4
471 .IX Item "TMPDIR, TEMP, TMP"
472 These environment variables are checked, in order, for the location to
473 write temporary files used during the compilation process.
474 .IP "\fB\s-1CPATH\s0\fR" 4
475 .IX Item "CPATH"
476 If this environment variable is present, it is treated as a delimited
477 list of paths to be added to the default system include path list. The
478 delimiter is the platform dependent delimitor, as used in the \fI\s-1PATH\s0\fR
479 environment variable.
480 .Sp
481 Empty components in the environment variable are ignored.
482 .IP "\fBC_INCLUDE_PATH\fR, \fB\s-1OBJC_INCLUDE_PATH\s0\fR, \fB\s-1CPLUS_INCLUDE_PATH\s0\fR, \fB\s-1OBJCPLUS_INCLUDE_PATH\s0\fR" 4
483 .IX Item "C_INCLUDE_PATH, OBJC_INCLUDE_PATH, CPLUS_INCLUDE_PATH, OBJCPLUS_INCLUDE_PATH"
484 These environment variables specify additional paths, as for \s-1CPATH\s0,
485 which are only used when processing the appropriate language.
486 .IP "\fB\s-1MACOSX_DEPLOYMENT_TARGET\s0\fR" 4
487 .IX Item "MACOSX_DEPLOYMENT_TARGET"
488 If \-mmacosx\-version\-min is unspecified, the default deployment target
489 is read from this environment variable.  This option only affects darwin
490 targets.
491 .SH "BUGS"
492 .IX Header "BUGS"
493 To report bugs, please visit <http://llvm.org/bugs/>.  Most bug reports should
494 include preprocessed source files (use the \fB\-E\fR option) and the full output of 
495 the compiler, along with information to reproduce.
496 .SH "SEE ALSO"
497 .IX Header "SEE ALSO"
498 .Vb 1
499 \& as(1), ld(1)
500 .Ve
501 .SH "AUTHOR"
502 .IX Header "AUTHOR"
503 Maintained by the Clang / \s-1LLVM\s0 Team (<http://clang.llvm.org>).