[PATCH] D98873: Document -fcrash-diagnostics-dir
Paul Robinson via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 18 08:32:22 PDT 2021
probinson created this revision.
probinson added a reviewer: hans.
Herald added subscribers: jansvoboda11, dang.
probinson requested review of this revision.
Herald added a project: clang.
This was added in LLVM 7.0 but without help text or other docs.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D98873
Files:
clang/docs/UsersManual.rst
clang/include/clang/Driver/Options.td
Index: clang/include/clang/Driver/Options.td
===================================================================
--- clang/include/clang/Driver/Options.td
+++ clang/include/clang/Driver/Options.td
@@ -1277,7 +1277,9 @@
Group<f_Group>;
def fno_crash_diagnostics : Flag<["-"], "fno-crash-diagnostics">, Group<f_clang_Group>, Flags<[NoArgumentUnused, CoreOption]>,
HelpText<"Disable auto-generation of preprocessed source files and a script for reproduction during a clang crash">;
-def fcrash_diagnostics_dir : Joined<["-"], "fcrash-diagnostics-dir=">, Group<f_clang_Group>, Flags<[NoArgumentUnused, CoreOption]>;
+def fcrash_diagnostics_dir : Joined<["-"], "fcrash-diagnostics-dir=">,
+ Group<f_clang_Group>, Flags<[NoArgumentUnused, CoreOption]>,
+ HelpText<"Put crash-report files in <dir>">, MetaVarName<"<dir>">;
def fcreate_profile : Flag<["-"], "fcreate-profile">, Group<f_Group>;
defm cxx_exceptions: BoolFOption<"cxx-exceptions",
LangOpts<"CXXExceptions">, DefaultFalse,
Index: clang/docs/UsersManual.rst
===================================================================
--- clang/docs/UsersManual.rst
+++ clang/docs/UsersManual.rst
@@ -674,6 +674,11 @@
The -fno-crash-diagnostics flag can be helpful for speeding the process
of generating a delta reduced test case.
+.. option:: -fcrash-diagnostics-dir=<dir>
+
+ Specify where to write the crash diagnostics files; defaults to the
+ usual location for temporary files.
+
Clang is also capable of generating preprocessed source file(s) and associated
run script(s) even without a crash. This is specially useful when trying to
generate a reproducer for warnings or errors while using modules.
@@ -3629,6 +3634,8 @@
-fcomplete-member-pointers
Require member pointer base types to be complete if they would be significant under the Microsoft ABI
-fcoverage-mapping Generate coverage mapping to enable code coverage analysis
+ -fcrash-diagnostics-dir=<dir>
+ Put crash-report files in <dir>
-fdebug-macro Emit macro debug information
-fdelayed-template-parsing
Parse templated function definitions at the end of the translation unit
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98873.331573.patch
Type: text/x-patch
Size: 2285 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210318/1cc97d1d/attachment.bin>
More information about the cfe-commits
mailing list