aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2020-05-15 09:29:38 +0200
committerRaphael Isemann <teemperor@gmail.com>2020-05-15 10:11:03 +0200
commitd48ef7cab55878fbb598e7a968b6073f9c7aa9ed (patch)
tree7deed7d9a0921e30688c066a68a272fed9ce7551 /clang/lib/Frontend/CompilerInvocation.cpp
parent854f5f332af4640d9425e9a94442629e4f5a3f98 (diff)
downloadllvm-d48ef7cab55878fbb598e7a968b6073f9c7aa9ed.zip
llvm-d48ef7cab55878fbb598e7a968b6073f9c7aa9ed.tar.gz
llvm-d48ef7cab55878fbb598e7a968b6073f9c7aa9ed.tar.bz2
[lldb] Print full Clang diagnostics when the ClangModulesDeclVendor fails to compile a module
Summary: When the ClangModulesDeclVendor currently fails it just prints very basic and often incomplete diagnostics without any source locations: ``` (lldb) p @import Foundation error: while importing modules: 'foo/bar.h' file not found could not build module 'Darwin' [...] ``` or even just ``` (lldb) p @import Foundation error: while importing modules: could not build module 'Darwin' [...] ``` These diagnostics help neither the user nor us with figuring out what is the reason for the failure. This patch wires up a full TextDiagnosticPrinter in the ClangModulesDeclVendor and makes sure we always return the error stream to the user when we fail to compile our modules. Fixes rdar://63216849 Reviewers: aprantl, jdoerfert Reviewed By: aprantl Subscribers: JDevlieghere Differential Revision: https://reviews.llvm.org/D79947
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions