@@ -2622,6 +2622,10 @@ Execute ``clang-cl /?`` to see a list of supported options:
2622
2622
/Brepro Emit an object file which can be reproduced over time
2623
2623
/C Don't discard comments when preprocessing
2624
2624
/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
2625
2629
/D <macro[=value]> Define macro
2626
2630
/EH<value> Exception handling model
2627
2631
/EP Disable linemarker output and preprocess to stdout
@@ -2716,6 +2720,8 @@ Execute ``clang-cl /?`` to see a list of supported options:
2716
2720
/Zc:threadSafeInit Enable thread-safe initialization of static variables
2717
2721
/Zc:trigraphs- Disable trigraphs (default)
2718
2722
/Zc:trigraphs Enable trigraphs
2723
+ /Zc:twoPhase- Disable two-phase name lookup in templates
2724
+ /Zc:twoPhase Enable two-phase name lookup in templates
2719
2725
/Zd Emit debug line number tables only
2720
2726
/Zi Alias for /Z7. Does not produce PDBs.
2721
2727
/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:
2728
2734
--analyze Run the static analyzer
2729
2735
-fansi-escape-codes Use ANSI escape codes for diagnostics
2730
2736
-fcolor-diagnostics Use colors in diagnostics
2737
+ -fdebug-macro Emit macro debug information
2731
2738
-fdelayed-template-parsing
2732
2739
Parse templated function definitions at the end of the translation unit
2733
2740
-fdiagnostics-absolute-paths
2734
2741
Print absolute paths in diagnostics
2735
2742
-fdiagnostics-parseable-fixits
2736
2743
Print fix-its in machine parseable form
2744
+ -flto=<value> Set LTO mode to either 'full' or 'thin'
2737
2745
-flto Enable LTO in 'full' mode
2738
2746
-fms-compatibility-version=<value>
2739
2747
Dot-separated value representing the Microsoft compiler version
@@ -2742,12 +2750,27 @@ Execute ``clang-cl /?`` to see a list of supported options:
2742
2750
-fms-extensions Accept some non-standard constructs supported by the Microsoft compiler
2743
2751
-fmsc-version=<value> Microsoft compiler version number to report in _MSC_VER
2744
2752
(0 = don't define it (default))
2753
+ -fno-debug-macro Do not emit macro debug information
2745
2754
-fno-delayed-template-parsing
2746
2755
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.
2747
2761
-fno-sanitize-coverage=<value>
2748
2762
Disable specified features of coverage instrumentation for Sanitizers
2763
+ -fno-sanitize-memory-track-origins
2764
+ Disable origins tracking in MemorySanitizer
2749
2765
-fno-sanitize-recover=<value>
2750
2766
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
2751
2774
-fno-sanitize-trap=<value>
2752
2775
Disable trapping for specified sanitizers
2753
2776
-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:
2759
2782
(overridden by '=' form of option or LLVM_PROFILE_FILE env var)
2760
2783
-fprofile-instr-use=<value>
2761
2784
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
2762
2791
-fsanitize-blacklist=<value>
2763
2792
Path to blacklist file for sanitizers
2793
+ -fsanitize-cfi-cross-dso
2794
+ Enable control flow integrity (CFI) checks for cross-DSO calls.
2764
2795
-fsanitize-coverage=<value>
2765
2796
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
2766
2803
-fsanitize-recover=<value>
2767
2804
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)
2768
2812
-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.
2769
2815
-fsanitize=<check> Turn on runtime checks for various forms of undefined or suspicious
2770
2816
behavior. See user manual for available checks
2771
2817
-fstandalone-debug Emit full debug info for all types used by the program
2772
2818
-gcodeview Generate CodeView debug information
2773
2819
-gline-tables-only Emit debug line number tables only
2774
2820
-miamcu Use Intel MCU ABI
2775
2821
-mllvm <value> Additional arguments to forward to LLVM's option processing
2822
+ -nobuiltininc Disable builtin #include directories
2776
2823
-Qunused-arguments Don't emit warning for unused driver arguments
2777
2824
-R<remark> Enable the specified remark
2778
2825
--target=<value> Generate code for the given target
0 commit comments