Commit Graph

7 Commits

Author SHA1 Message Date
Jordan Rose
9f5ba4223e Update for SMRange becoming half-open instead of inclusive.
Swift SVN r3701
2013-01-07 19:01:11 +00:00
Ted Kremenek
219b7bd430 Move LLVM.h to libBasic.
Swift SVN r2550
2012-08-03 23:54:29 +00:00
Chris Lattner
a4244984b3 fix "newline @ end of file" warning.
Swift SVN r864
2011-11-10 20:33:44 +00:00
Doug Gregor
3f5c6d7c44 Fix typo in comment regarding inclusive range.
Swift SVN r858
2011-11-10 15:48:13 +00:00
Doug Gregor
d4d7ac1e6b SMRange is inclusive of the end location, so adjust our end location
accordingly when printing diagnostics.


Swift SVN r854
2011-11-09 22:07:29 +00:00
Doug Gregor
b1c98e1731 Introduce Lexer::getLocForEndOfToken() to adjust source locations to
the end of the current token, and use it for proper translation from
SourceRange to SMRange when printing diagnostics.



Swift SVN r853
2011-11-09 22:03:30 +00:00
Doug Gregor
725298a2da Introduce a DiagnosticConsumer abstract interface that is used to
actually render emitted diagnostics. This is both a useful
generalization (we expect to have a number of other
DiagnosticConsumers down the road, as Clang does) and is also
important now to avoid a layering violation when adjusting the source
location at the end of a SourceRange to the end of the token.

 


Swift SVN r850
2011-11-09 18:59:39 +00:00