hanchenye-llvm-project/clang/lib/Rewrite
Chris Lattner 184e65d363 Change Lexer::MeasureTokenLength to take a LangOptions reference.
This allows it to accurately measure tokens, so that we get:

t.cpp:8:13: error: unknown type name 'X'
static foo::X  P;
       ~~~~~^

instead of the woefully inferior:

t.cpp:8:13: error: unknown type name 'X'
static foo::X  P;
       ~~~~ ^

Most of this is just plumbing to push the reference around.

llvm-svn: 69099
2009-04-14 23:22:57 +00:00
..
CMakeLists.txt CMake: Builds and installs clang binary and libs (no docs yet). It 2008-10-26 00:56:18 +00:00
DeltaTree.cpp Fix a corner case that ted hit in -emit-html, rdar://5863212 2008-04-15 02:26:21 +00:00
HTMLRewrite.cpp Change Lexer::MeasureTokenLength to take a LangOptions reference. 2009-04-14 23:22:57 +00:00
Makefile Build system changes to use TableGen to generate the various 2009-03-16 23:06:59 +00:00
RewriteRope.cpp Fixed an offset calculation error. 2008-09-16 07:58:21 +00:00
Rewriter.cpp Change Lexer::MeasureTokenLength to take a LangOptions reference. 2009-04-14 23:22:57 +00:00
TokenRewriter.cpp This change refactors some of the low-level lexer interfaces a bit. 2009-01-26 19:29:26 +00:00