llvm-project/clang/lib/Rewrite
Chris Lattner 9ef847be12 Fix rdar://6562329, a static analyzer crash Ted noticed on
wine sources.  This was happening because HighlightMacros was 
calling EnterMainFile multiple times on the same preprocessor
object and getting an assert due to the new #line stuff (the
file in question was bison output with #line directives).

The fix for this is to not reenter the file.  Instead, 
relex the tokens in raw mode, swizzle them a bit and repreprocess
the token stream.  An added bonus of this is that rewrite macros
will now hilight the macro definition as well as its uses.  Woo.

llvm-svn: 64480
2009-02-13 19:33:24 +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 Fix rdar://6562329, a static analyzer crash Ted noticed on 2009-02-13 19:33:24 +00:00
Makefile Make a major restructuring of the clang tree: introduce a top-level 2008-03-15 23:59:48 +00:00
RewriteRope.cpp Fixed an offset calculation error. 2008-09-16 07:58:21 +00:00
Rewriter.cpp Check in the long promised SourceLocation rewrite. This lays the 2009-01-26 00:43:02 +00:00
TokenRewriter.cpp This change refactors some of the low-level lexer interfaces a bit. 2009-01-26 19:29:26 +00:00