Go to file
Chandler Carruth 3d262187f6 Rationalize some of how the locations of prior diagnostics are tracked
across emissions.

1) The include stack printing is conditioned on non-note diagnostics,
   not just on warning diagnostics.
2) Those should be full source locations as they're tied to a source
   manager.
3) We should pass in the prior state to the TextDiagnostic constructor,
   allow it to mutate as diagnostics are emitted, and then cache the
   final state before tearing it down.

Some of this remains incomplete, specifically #3 isn't finished for the
non-note location. That'll come when the include stack printing sinks
down a level.

This also highlights how *completely* bug-ridden this code is. For
example, we currently do all these comparisons of a FullSourceLoc and
a SourceLocation... which silently does a SourceLocation to
SourceLocation comparison, completely disregarding the source manager
from whence one of the arguments came. Oops! Good thing in practice this
wasn't important, but it could in theory be suppressing caret
diagnostics in a second TU on a single clang invocation. I'm hoping to
hammer these bugs out as the refactorings occur, although for so many of
them it's really unlikely I can dream up a test case that would show the
potentially buggy behavior.

llvm-svn: 142067
2011-10-15 11:44:27 +00:00
clang Rationalize some of how the locations of prior diagnostics are tracked 2011-10-15 11:44:27 +00:00
compiler-rt <rdar://problem/10172492> No armv4t slice of libcompiler_rt-static.a 2011-09-27 20:05:27 +00:00
debuginfo-tests Testcase for r133065 2011-06-15 17:57:23 +00:00
libcxx Fix http://llvm.org/bugs/show_bug.cgi?id=11113 2011-10-11 21:28:38 +00:00
libcxxabi reformatted to match Clang style; thanks to John McCall for the nudge 2011-08-15 18:06:47 +00:00
lldb Handled the call operator properly. 2011-10-15 01:15:07 +00:00
llvm Don't replace all dominated uses if there is only one use, since that 2011-10-15 11:13:42 +00:00
polly ScopDetection: Improve error messages and add another INVALID case. 2011-10-08 00:49:30 +00:00