forked from OSchip/llvm-project
Driver: include rewrite maps in the diagnostics
The rewrite map files are not copied, and so cannot be tracked as temporary files. Add them explicitly to the list of files that we request from the user to be attached to bug reports. llvm-svn: 225614
This commit is contained in:
parent
89296ee2c3
commit
3661a82ef6
|
@ -548,6 +548,11 @@ void Driver::generateCompilationDiagnostics(Compilation &C,
|
|||
Cmd.Print(ScriptOS, "\n", /*Quote=*/true, &CrashInfo);
|
||||
Diag(clang::diag::note_drv_command_failed_diag_msg) << Script;
|
||||
}
|
||||
|
||||
for (const auto &A : C.getArgs().filtered(options::OPT_frewrite_map_file,
|
||||
options::OPT_frewrite_map_file_EQ))
|
||||
Diag(clang::diag::note_drv_command_failed_diag_msg) << A->getValue();
|
||||
|
||||
Diag(clang::diag::note_drv_command_failed_diag_msg)
|
||||
<< "\n\n********************";
|
||||
}
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
// RUN: rm -rf "%t"
|
||||
// RUN: mkdir -p "%t"
|
||||
// RUN: not env TMPDIR="%t" TEMP="%t" TMP="%t" RC_DEBUG_OPTION=1 \
|
||||
// RUN: %clang -fsyntax-only -frewrite-map-file %p/Inputs/rewrite.map %s 2>&1 \
|
||||
// RUN: | FileCheck %s
|
||||
|
||||
#pragma clang __debug parser_crash
|
||||
|
||||
// CHECK: note: diagnostic msg: {{.*}}rewrite.map
|
Loading…
Reference in New Issue