clang-1/lib/Lex
Chris Lattner 2c78b873f4 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.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69099 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-14 23:22:57 +00:00
..
CMakeLists.txt Build system changes to use TableGen to generate the various 2009-03-16 23:06:59 +00:00
HeaderMap.cpp improve compatibility with GCC 4.4, patch by Michel Salim (PR3697) 2009-03-02 22:20:04 +00:00
HeaderSearch.cpp improve compatibility with GCC 4.4, patch by Michel Salim (PR3697) 2009-03-02 22:20:04 +00:00
Lexer.cpp Change Lexer::MeasureTokenLength to take a LangOptions reference. 2009-04-14 23:22:57 +00:00
LiteralSupport.cpp temporarily revert r69046 2009-04-14 18:05:08 +00:00
MacroArgs.cpp move library-specific diagnostic headers into library private dirs. Reduce 2009-01-29 05:15:15 +00:00
MacroArgs.h Make a major restructuring of the clang tree: introduce a top-level 2008-03-15 23:59:48 +00:00
MacroInfo.cpp fix PR3764 - A redefinition of a pre-processor macro fails 2009-03-09 20:33:32 +00:00
Makefile Build system changes to use TableGen to generate the various 2009-03-16 23:06:59 +00:00
PPCaching.cpp This change refactors some of the low-level lexer interfaces a bit. 2009-01-26 19:29:26 +00:00
PPDirectives.cpp Offer a fixit hint for our warning about tokens at the end of a directive: 2009-04-14 05:15:20 +00:00
PPExpressions.cpp move library-specific diagnostic headers into library private dirs. Reduce 2009-01-29 05:15:15 +00:00
PPLexerChange.cpp when preprocessing a .S file, unknown directives should just be passed through, 2009-03-18 21:00:25 +00:00
PPMacroExpansion.cpp implement the microsoft/gnu "__COUNTER__" macro: rdar://4329310 2009-04-13 01:29:17 +00:00
PTHLexer.cpp PTHManager::Create(): 2009-03-22 06:42:39 +00:00
Pragma.cpp Fix the #import / #include_next "extra tokens at end of #foo directive" 2009-04-14 05:07:49 +00:00
Preprocessor.cpp Change Lexer::MeasureTokenLength to take a LangOptions reference. 2009-04-14 23:22:57 +00:00
PreprocessorLexer.cpp move library-specific diagnostic headers into library private dirs. Reduce 2009-01-29 05:15:15 +00:00
ScratchBuffer.cpp add \n characters to the scratch buffer *before* returned tokens. 2009-03-08 08:16:41 +00:00
TokenConcatenation.cpp Fix -E mismatch; an identifier followed by a numeric constant does not 2009-03-18 03:32:24 +00:00
TokenLexer.cpp The individual pieces of an invalid paste as still candidates for expansion. 2009-03-23 17:32:45 +00:00