llvm-project/clang/lib/Lex
Chris Lattner 83bd8281e5 Fix a couple of bugs:
1. When we accept "#garbage" in asm-with-cpp mode, change the token kind
   of the # to unknown so that the preprocessor won't try to process it as
   a real #.  This fixes a crash on the attached example
2. Fix macro definition extents processing to handle #foo at the end of a
   macro to say the definition ends with the foo, not the #.

This is a follow-on fix to r72283, and rdar://6916026

llvm-svn: 72388
2009-05-25 17:16:10 +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 Lazily load the controlling macros for all of the headers known in the 2009-04-25 23:30:02 +00:00
Lexer.cpp Fix rdar://6880630 - # in _Pragma does not start a preprocessor directive. 2009-05-13 06:10:29 +00:00
LiteralSupport.cpp Implement -Wfour-char-constants, which is an extension, not an extwarn, 2009-04-28 21:51:46 +00:00
MacroArgs.cpp When we expect two arguments but have zero, make sure to add 2009-05-13 00:55:26 +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 Fix a couple of bugs: 2009-05-25 17:16:10 +00:00
PPExpressions.cpp PR3942: Don't warn on unsigned overflow in preprocessor expressions. 2009-05-16 21:24:10 +00:00
PPLexerChange.cpp Add PCH support for #import. 2009-04-24 20:03:17 +00:00
PPMacroExpansion.cpp Use v.data() instead of &v[0] when SmallVector v might be empty. 2009-05-21 09:52:38 +00:00
PTHLexer.cpp Move the on-disk hash table code into its own header. No functionality change. 2009-04-20 07:08:21 +00:00
Pragma.cpp accept "#pragma clang foo" where we accept "#pragma GCC foo". 2009-05-12 18:21:11 +00:00
Preprocessor.cpp Emit keyword extension warning in all modes, not just C99 mode. 2009-04-28 03:59:15 +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 apply Eli's patch to fix PR4008, with a testcase. Thanks Eli! 2009-04-21 23:28:41 +00:00
TokenLexer.cpp improve comment, no functionality change. 2009-05-25 16:23:08 +00:00