Lines Matching +full:- +full:- +full:option
1 clang - the Clang C, C++, and Objective-C compiler
5 --------
10 -----------
12 :program:`clang` is a C, C++, and Objective-C compiler which encompasses
14 Depending on which high-level mode setting is passed, Clang will stop before
29 ".mi" (for Objective-C), or ".mii" (for Objective-C++) file.
40 This stage translates an AST into low-level intermediate code (known as
42 optimizing the generated code and handling target-specific code generation.
63 the same driver. Please see <http://clang-analyzer.llvm.org> for more details
67 -------
72 .. option:: -E
76 .. option:: -fsyntax-only
80 .. option:: -S
83 and target-specific code generation, producing an assembly file.
85 .. option:: -c
89 .. option:: no stage selection option
91 If no stage selection option is specified, all stages above are run, and the
97 .. option:: -x <language>
101 .. option:: -std=<language>
105 .. option:: -stdlib=<library>
110 .. option:: -ansi
112 Same as -std=c89.
114 .. option:: -ObjC, -ObjC++
116 Treat source input files as Objective-C and Object-C++ inputs respectively.
118 .. option:: -trigraphs
122 .. option:: -ffreestanding
127 .. option:: -fno-builtin
132 .. option:: -fmath-errno
136 .. option:: -fpascal-strings
138 Enable support for Pascal-style strings with "\\pfoo".
140 .. option:: -fms-extensions
144 .. option:: -fmsc-version=
148 .. option:: -fborland-extensions
152 .. option:: -fwritable-strings
157 .. option:: -flax-vector-conversions
161 .. option:: -fblocks
165 .. option:: -fobjc-gc-only
167 Indicate that Objective-C code should be compiled in GC-only mode, which only
168 works when Objective-C Garbage Collection is enabled.
170 .. option:: -fobjc-gc
172 Indicate that Objective-C code should be compiled in hybrid-GC mode, which
173 works with both GC and non-GC mode.
175 .. option:: -fobjc-abi-version=version
177 Select the Objective-C ABI version to use. Available versions are 1 (legacy
178 "fragile" ABI), 2 (non-fragile ABI 1), and 3 (non-fragile ABI 2).
180 .. option:: -fobjc-nonfragile-abi-version=<version>
182 Select the Objective-C non-fragile ABI version to use by default. This will
183 only be used as the Objective-C ABI when the non-fragile ABI is enabled
184 (either via :option:`-fobjc-nonfragile-abi`, or because it is the platform
187 .. option:: -fobjc-nonfragile-abi, -fno-objc-nonfragile-abi
189 Enable use of the Objective-C non-fragile ABI. On platforms for which this is
190 the default ABI, it can be disabled with :option:`-fno-objc-nonfragile-abi`.
199 .. option:: -arch <architecture>
203 .. option:: -mmacosx-version-min=<version>
208 .. option:: -miphoneos-version-min
213 .. option:: -march=<cpu>
216 member and later. For example, if you specify -march=i486, the compiler is
224 .. option:: -O0, -O1, -O2, -O3, -Ofast, -Os, -Oz, -O, -O4
228 :option:`-O0` Means "no optimization": this level compiles the fastest and
231 :option:`-O1` Somewhere between :option:`-O0` and :option:`-O2`.
233 :option:`-O2` Moderate level of optimization which enables most
236 :option:`-O3` Like :option:`-O2`, except that it enables optimizations that
240 :option:`-Ofast` Enables all the optimizations from :option:`-O3` along
244 :option:`-Os` Like :option:`-O2` with extra optimizations to reduce code
247 :option:`-Oz` Like :option:`-Os` (and thus :option:`-O2`), but reduces code
250 :option:`-O` Equivalent to :option:`-O2`.
252 :option:`-O4` and higher
254 Currently equivalent to :option:`-O3`
256 .. option:: -g, -gline-tables-only, -gmodules
259 best at :option:`-O0`. When more than one option starting with `-g` is
262 :option:`-g` Generate debug information.
264 :option:`-gline-tables-only` Generate only line table debug information. This
268 :option:`-gmodules` Generate debug information that contains external
271 option transparently switches the Clang module format to object file
274 this option produces complete debug information with faster compile
277 This option should not be used when building static libraries for
282 .. option:: -fstandalone-debug -fno-standalone-debug
292 The :option:`-fstandalone-debug` option turns off these optimizations.
293 This is useful when working with 3rd-party libraries that don't come with
298 .. option:: -fexceptions
301 through Clang compiled stack frames. This is on by default in x86-64.
303 .. option:: -ftrapv
309 .. option:: -fvisibility
313 .. option:: -fcommon, -fno-common
316 It can be disabled with :option:`-fno-common`.
318 .. option:: -ftls-model=<model>
320 Set the default thread-local storage (TLS) model to use for thread-local
321 variables. Valid values are: "global-dynamic", "local-dynamic",
322 "initial-exec" and "local-exec". The default is "global-dynamic". The default
326 .. option:: -flto, -emit-llvm
329 When used with :option:`-S` this generates LLVM intermediate language
336 .. option:: -###
340 .. option:: --help
344 .. option:: -Qunused-arguments
348 .. option:: -Wa,<args>
352 .. option:: -Wl,<args>
356 .. option:: -Wp,<args>
360 .. option:: -Xanalyzer <arg>
364 .. option:: -Xassembler <arg>
368 .. option:: -Xlinker <arg>
372 .. option:: -Xpreprocessor <arg>
376 .. option:: -o <file>
380 .. option:: -print-file-name=<file>
384 .. option:: -print-libgcc-file-name
388 .. option:: -print-prog-name=<name>
392 .. option:: -print-search-dirs
396 .. option:: -save-temps
400 .. option:: -integrated-as, -no-integrated-as
406 .. option:: -time
410 .. option:: -ftime-report
414 .. option:: -v
422 …option:: -fshow-column, -fshow-source-location, -fcaret-diagnostics, -fdiagnostics-fixit-info, -fd…
430 .. option:: -D<macroname>=<value>
435 .. option:: -U<macroname>
440 .. option:: -include <filename>
445 .. option:: -I<directory>
449 .. option:: -F<directory>
453 .. option:: -nostdinc
458 .. option:: -nostdlibinc
463 .. option:: -nobuiltininc
469 -----------
491 If :option:`-mmacosx-version-min` is unspecified, the default deployment
492 target is read from this environment variable. This option only affects
496 ----
499 include preprocessed source files (use the :option:`-E` option) and the full
503 --------