diff options
author | Douglas Gregor <dgregor@apple.com> | 2013-05-03 22:58:43 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2013-05-03 22:58:43 +0000 |
commit | 6b930967e88029e9c7ce1b1c4234042b5983ad63 (patch) | |
tree | a222ecff1ec495a9578e294ba8363c778a51b36a /clang/test/Modules/Inputs/ModuleDiags/has_warnings.h | |
parent | b2a1cb87b1df6bb1881e5da1cd590d241f9807b6 (diff) | |
download | bcm5719-llvm-6b930967e88029e9c7ce1b1c4234042b5983ad63.tar.gz bcm5719-llvm-6b930967e88029e9c7ce1b1c4234042b5983ad63.zip |
When building a module, forward diagnostics to the outer diagnostic consumer.
Previously, we would clone the current diagnostic consumer to produce
a new diagnostic consumer to use when building a module. The problem
here is that we end up losing diagnostics for important diagnostic
consumers, such as serialized diagnostics (where we'd end up with two
diagnostic consumers writing the same output file). With forwarding,
the diagnostics from all of the different modules being built get
forwarded to the one serialized-diagnostic consumer and are emitted in
a sane way.
Fixes <rdar://problem/13663996>.
llvm-svn: 181067
Diffstat (limited to 'clang/test/Modules/Inputs/ModuleDiags/has_warnings.h')
-rw-r--r-- | clang/test/Modules/Inputs/ModuleDiags/has_warnings.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/ModuleDiags/has_warnings.h b/clang/test/Modules/Inputs/ModuleDiags/has_warnings.h new file mode 100644 index 00000000000..87112be6952 --- /dev/null +++ b/clang/test/Modules/Inputs/ModuleDiags/has_warnings.h @@ -0,0 +1,3 @@ + +int int_val; +float *float_ptr = &int_val; |