From 29ed0a05e2fe320ac01b5371c404b4c59541690d Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Wed, 19 Jul 2017 09:52:24 +0000 Subject: [PATCH 1/1] 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 --- docs/UsersManual.rst | 47 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/docs/UsersManual.rst b/docs/UsersManual.rst index 387ec63e9c..e5f33fc295 100644 --- a/docs/UsersManual.rst +++ b/docs/UsersManual.rst @@ -2622,6 +2622,10 @@ Execute ``clang-cl /?`` to see a list of supported options: /Brepro Emit an object file which can be reproduced over time /C Don't discard comments when preprocessing /c Compile only + /d1reportAllClassLayout Dump record layout information + /diagnostics:caret Enable caret and column diagnostics (on by default) + /diagnostics:classic Disable column and caret diagnostics + /diagnostics:column Disable caret diagnostics but keep column info /D Define macro /EH Exception handling model /EP Disable linemarker output and preprocess to stdout @@ -2716,6 +2720,8 @@ Execute ``clang-cl /?`` to see a list of supported options: /Zc:threadSafeInit Enable thread-safe initialization of static variables /Zc:trigraphs- Disable trigraphs (default) /Zc:trigraphs Enable trigraphs + /Zc:twoPhase- Disable two-phase name lookup in templates + /Zc:twoPhase Enable two-phase name lookup in templates /Zd Emit debug line number tables only /Zi Alias for /Z7. Does not produce PDBs. /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: --analyze Run the static analyzer -fansi-escape-codes Use ANSI escape codes for diagnostics -fcolor-diagnostics Use colors in diagnostics + -fdebug-macro Emit macro debug information -fdelayed-template-parsing Parse templated function definitions at the end of the translation unit -fdiagnostics-absolute-paths Print absolute paths in diagnostics -fdiagnostics-parseable-fixits Print fix-its in machine parseable form + -flto= Set LTO mode to either 'full' or 'thin' -flto Enable LTO in 'full' mode -fms-compatibility-version= Dot-separated value representing the Microsoft compiler version @@ -2742,12 +2750,27 @@ Execute ``clang-cl /?`` to see a list of supported options: -fms-extensions Accept some non-standard constructs supported by the Microsoft compiler -fmsc-version= Microsoft compiler version number to report in _MSC_VER (0 = don't define it (default)) + -fno-debug-macro Do not emit macro debug information -fno-delayed-template-parsing Disable delayed template parsing + -fno-sanitize-address-use-after-scope + Disable use-after-scope detection in AddressSanitizer + -fno-sanitize-blacklist Don't use blacklist file for sanitizers + -fno-sanitize-cfi-cross-dso + Disable control flow integrity (CFI) checks for cross-DSO calls. -fno-sanitize-coverage= Disable specified features of coverage instrumentation for Sanitizers + -fno-sanitize-memory-track-origins + Disable origins tracking in MemorySanitizer -fno-sanitize-recover= Disable recovery for specified sanitizers + -fno-sanitize-stats Disable sanitizer statistics gathering. + -fno-sanitize-thread-atomics + Disable atomic operations instrumentation in ThreadSanitizer + -fno-sanitize-thread-func-entry-exit + Disable function entry/exit instrumentation in ThreadSanitizer + -fno-sanitize-thread-memory-access + Disable memory access instrumentation in ThreadSanitizer -fno-sanitize-trap= Disable trapping for specified sanitizers -fno-standalone-debug Limit debug information produced to reduce size of debug binary @@ -2759,13 +2782,36 @@ Execute ``clang-cl /?`` to see a list of supported options: (overridden by '=' form of option or LLVM_PROFILE_FILE env var) -fprofile-instr-use= Use instrumentation data for profile-guided optimization + -fsanitize-address-field-padding= + Level of field padding for AddressSanitizer + -fsanitize-address-globals-dead-stripping + Enable linker dead stripping of globals in AddressSanitizer + -fsanitize-address-use-after-scope + Enable use-after-scope detection in AddressSanitizer -fsanitize-blacklist= Path to blacklist file for sanitizers + -fsanitize-cfi-cross-dso + Enable control flow integrity (CFI) checks for cross-DSO calls. -fsanitize-coverage= Specify the type of coverage instrumentation for Sanitizers + -fsanitize-memory-track-origins= + Enable origins tracking in MemorySanitizer + -fsanitize-memory-track-origins + Enable origins tracking in MemorySanitizer + -fsanitize-memory-use-after-dtor + Enable use-after-destroy detection in MemorySanitizer -fsanitize-recover= Enable recovery for specified sanitizers + -fsanitize-stats Enable sanitizer statistics gathering. + -fsanitize-thread-atomics + Enable atomic operations instrumentation in ThreadSanitizer (default) + -fsanitize-thread-func-entry-exit + Enable function entry/exit instrumentation in ThreadSanitizer (default) + -fsanitize-thread-memory-access + Enable memory access instrumentation in ThreadSanitizer (default) -fsanitize-trap= Enable trapping for specified sanitizers + -fsanitize-undefined-strip-path-components= + Strip (or keep only, if negative) a given number of path components when emitting check metadata. -fsanitize= Turn on runtime checks for various forms of undefined or suspicious behavior. See user manual for available checks -fstandalone-debug Emit full debug info for all types used by the program @@ -2773,6 +2819,7 @@ Execute ``clang-cl /?`` to see a list of supported options: -gline-tables-only Emit debug line number tables only -miamcu Use Intel MCU ABI -mllvm Additional arguments to forward to LLVM's option processing + -nobuiltininc Disable builtin #include directories -Qunused-arguments Don't emit warning for unused driver arguments -R Enable the specified remark --target= Generate code for the given target -- 2.40.0