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
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
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits