llvm-project/clang/tools
Bruno Cardoso Lopes 52dfe71645 [Driver] Add compiler option to generate a reproducer
One way to currently test the reproducers is to setup
"FORCE_CLANG_DIAGNOSTICS_CRASH=1" before invoking clang. This simulates
a crash and produces the same contents needed by the reproducers.  The
reproducers are specially useful when triaging Modules issues, not only
on crashes, but also for reproducing misleading warnings, errors, etc.

Add a '-gen-reproducer' driver option to clang (or any similar name) and
give users a flag option.

Note that clang already has a -fno-crash-diagnostics, which disables the
crash reproducers. I've decided not to propose "-fcrash-diagnostics"
since it doesn't convey the ideia of reproduction despite a crash.

rdar://problem/24114619

Differential Revision: https://reviews.llvm.org/D27604

llvm-svn: 300109
2017-04-12 21:46:20 +00:00
..
arcmt-test [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
c-arcmt-test Remove autoconf support 2016-01-26 21:30:40 +00:00
c-index-test [c-index-test] Fix memory leak in c-index-test tool. 2017-03-21 21:34:05 +00:00
clang-check Add -cc1 flag -ast-dump-all to perform an AST dump including entities that haven't yet been deserialized. 2017-03-09 22:00:01 +00:00
clang-format clang-format: Don't leave behind temp files in -i mode on Windows, PR26125, reloaded 2017-02-27 22:59:58 +00:00
clang-format-vs clang-format-vsix: Add "Format on Save" feature 2017-04-05 14:13:45 +00:00
clang-fuzzer Unbreak the clang-fuzzer build after r291184. 2017-01-11 16:42:26 +00:00
clang-import-test [clang-import-test] Lookup inside contexts 2017-04-11 19:33:35 +00:00
clang-offload-bundler Spelling mistakes in comments. NFCI. (PR27635) 2017-03-30 14:13:19 +00:00
diag-build Briefly document diag-build.sh 2013-12-28 21:59:11 +00:00
diagtool Reapply "IntrusiveRefCntPtr -> std::shared_ptr for CompilerInvocationBase and CodeCompleteConsumer" 2017-01-06 19:49:01 +00:00
driver [Driver] Add compiler option to generate a reproducer 2017-04-12 21:46:20 +00:00
libclang [libclang] Bury dead TemporaryFiles 2017-03-24 09:49:54 +00:00
scan-build Actually install scan-build / ccc-analyzer / c++-analyzer on windows 2017-03-22 21:13:49 +00:00
scan-build-py [scan-build-py] merge runner module to analyzer 2017-04-07 11:04:49 +00:00
scan-view Add coding and shebang. 2017-03-02 18:47:22 +00:00
CMakeLists.txt Testbed and skeleton of a new expression parser 2016-12-22 20:03:14 +00:00