Skip to content

Commit 29ed0a0

Browse files
committed
Update clang-cl options in the users manual
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308427 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent d05132d commit 29ed0a0

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

docs/UsersManual.rst

+47
Original file line numberDiff line numberDiff line change
@@ -2622,6 +2622,10 @@ Execute ``clang-cl /?`` to see a list of supported options:
26222622
/Brepro Emit an object file which can be reproduced over time
26232623
/C Don't discard comments when preprocessing
26242624
/c Compile only
2625+
/d1reportAllClassLayout Dump record layout information
2626+
/diagnostics:caret Enable caret and column diagnostics (on by default)
2627+
/diagnostics:classic Disable column and caret diagnostics
2628+
/diagnostics:column Disable caret diagnostics but keep column info
26252629
/D <macro[=value]> Define macro
26262630
/EH<value> Exception handling model
26272631
/EP Disable linemarker output and preprocess to stdout
@@ -2716,6 +2720,8 @@ Execute ``clang-cl /?`` to see a list of supported options:
27162720
/Zc:threadSafeInit Enable thread-safe initialization of static variables
27172721
/Zc:trigraphs- Disable trigraphs (default)
27182722
/Zc:trigraphs Enable trigraphs
2723+
/Zc:twoPhase- Disable two-phase name lookup in templates
2724+
/Zc:twoPhase Enable two-phase name lookup in templates
27192725
/Zd Emit debug line number tables only
27202726
/Zi Alias for /Z7. Does not produce PDBs.
27212727
/Zl Don't mention any default libraries in the object file
@@ -2728,12 +2734,14 @@ Execute ``clang-cl /?`` to see a list of supported options:
27282734
--analyze Run the static analyzer
27292735
-fansi-escape-codes Use ANSI escape codes for diagnostics
27302736
-fcolor-diagnostics Use colors in diagnostics
2737+
-fdebug-macro Emit macro debug information
27312738
-fdelayed-template-parsing
27322739
Parse templated function definitions at the end of the translation unit
27332740
-fdiagnostics-absolute-paths
27342741
Print absolute paths in diagnostics
27352742
-fdiagnostics-parseable-fixits
27362743
Print fix-its in machine parseable form
2744+
-flto=<value> Set LTO mode to either 'full' or 'thin'
27372745
-flto Enable LTO in 'full' mode
27382746
-fms-compatibility-version=<value>
27392747
Dot-separated value representing the Microsoft compiler version
@@ -2742,12 +2750,27 @@ Execute ``clang-cl /?`` to see a list of supported options:
27422750
-fms-extensions Accept some non-standard constructs supported by the Microsoft compiler
27432751
-fmsc-version=<value> Microsoft compiler version number to report in _MSC_VER
27442752
(0 = don't define it (default))
2753+
-fno-debug-macro Do not emit macro debug information
27452754
-fno-delayed-template-parsing
27462755
Disable delayed template parsing
2756+
-fno-sanitize-address-use-after-scope
2757+
Disable use-after-scope detection in AddressSanitizer
2758+
-fno-sanitize-blacklist Don't use blacklist file for sanitizers
2759+
-fno-sanitize-cfi-cross-dso
2760+
Disable control flow integrity (CFI) checks for cross-DSO calls.
27472761
-fno-sanitize-coverage=<value>
27482762
Disable specified features of coverage instrumentation for Sanitizers
2763+
-fno-sanitize-memory-track-origins
2764+
Disable origins tracking in MemorySanitizer
27492765
-fno-sanitize-recover=<value>
27502766
Disable recovery for specified sanitizers
2767+
-fno-sanitize-stats Disable sanitizer statistics gathering.
2768+
-fno-sanitize-thread-atomics
2769+
Disable atomic operations instrumentation in ThreadSanitizer
2770+
-fno-sanitize-thread-func-entry-exit
2771+
Disable function entry/exit instrumentation in ThreadSanitizer
2772+
-fno-sanitize-thread-memory-access
2773+
Disable memory access instrumentation in ThreadSanitizer
27512774
-fno-sanitize-trap=<value>
27522775
Disable trapping for specified sanitizers
27532776
-fno-standalone-debug Limit debug information produced to reduce size of debug binary
@@ -2759,20 +2782,44 @@ Execute ``clang-cl /?`` to see a list of supported options:
27592782
(overridden by '=' form of option or LLVM_PROFILE_FILE env var)
27602783
-fprofile-instr-use=<value>
27612784
Use instrumentation data for profile-guided optimization
2785+
-fsanitize-address-field-padding=<value>
2786+
Level of field padding for AddressSanitizer
2787+
-fsanitize-address-globals-dead-stripping
2788+
Enable linker dead stripping of globals in AddressSanitizer
2789+
-fsanitize-address-use-after-scope
2790+
Enable use-after-scope detection in AddressSanitizer
27622791
-fsanitize-blacklist=<value>
27632792
Path to blacklist file for sanitizers
2793+
-fsanitize-cfi-cross-dso
2794+
Enable control flow integrity (CFI) checks for cross-DSO calls.
27642795
-fsanitize-coverage=<value>
27652796
Specify the type of coverage instrumentation for Sanitizers
2797+
-fsanitize-memory-track-origins=<value>
2798+
Enable origins tracking in MemorySanitizer
2799+
-fsanitize-memory-track-origins
2800+
Enable origins tracking in MemorySanitizer
2801+
-fsanitize-memory-use-after-dtor
2802+
Enable use-after-destroy detection in MemorySanitizer
27662803
-fsanitize-recover=<value>
27672804
Enable recovery for specified sanitizers
2805+
-fsanitize-stats Enable sanitizer statistics gathering.
2806+
-fsanitize-thread-atomics
2807+
Enable atomic operations instrumentation in ThreadSanitizer (default)
2808+
-fsanitize-thread-func-entry-exit
2809+
Enable function entry/exit instrumentation in ThreadSanitizer (default)
2810+
-fsanitize-thread-memory-access
2811+
Enable memory access instrumentation in ThreadSanitizer (default)
27682812
-fsanitize-trap=<value> Enable trapping for specified sanitizers
2813+
-fsanitize-undefined-strip-path-components=<number>
2814+
Strip (or keep only, if negative) a given number of path components when emitting check metadata.
27692815
-fsanitize=<check> Turn on runtime checks for various forms of undefined or suspicious
27702816
behavior. See user manual for available checks
27712817
-fstandalone-debug Emit full debug info for all types used by the program
27722818
-gcodeview Generate CodeView debug information
27732819
-gline-tables-only Emit debug line number tables only
27742820
-miamcu Use Intel MCU ABI
27752821
-mllvm <value> Additional arguments to forward to LLVM's option processing
2822+
-nobuiltininc Disable builtin #include directories
27762823
-Qunused-arguments Don't emit warning for unused driver arguments
27772824
-R<remark> Enable the specified remark
27782825
--target=<value> Generate code for the given target

0 commit comments

Comments
 (0)