]> granicus.if.org Git - clang/commit
Teach the serialized diagnostic writer to clone() itself, sharing
authorDouglas Gregor <dgregor@apple.com>
Fri, 30 Nov 2012 23:32:31 +0000 (23:32 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 30 Nov 2012 23:32:31 +0000 (23:32 +0000)
commit14afab36c73c32a831838ba80f36136a80d9e6db
tree3a207124f0d5d5a78178de5a39ffca208143185b
parente2dbaa9f78be2b09b0723d1b614286412808b5d3
Teach the serialized diagnostic writer to clone() itself, sharing
state so that all of the various clones end up rendering their
diagnostics into the same serialized-diagnostics file. This is
important when we actually want failures during module build to be
reported back to the translation unit that tried to import the
not-yet-built or out-of-date module. <rdar://problem/12565727>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169057 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/SerializedDiagnosticPrinter.cpp
test/Modules/build-fail-notes.m