]> granicus.if.org Git - clang/commit
Fix the root cause of PR2750 instead of the side effect.
authorChris Lattner <sabre@nondot.org>
Mon, 29 Sep 2008 23:12:31 +0000 (23:12 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 29 Sep 2008 23:12:31 +0000 (23:12 +0000)
commit4411f46050216a139ab2fc7ff145ec384d11ec7f
tree27ab4b2de8022911b29d50eda4cd895121d8b1a1
parent47fc25f0c18bb68d4f41789b7b52b34ec6d39d76
Fix the root cause of PR2750 instead of the side effect.

NumericLiteral parser is not careful about overrun because
it should never be possible.  It implicitly expects that its
input matched the regex for pp-constant.  Because of this, it
knows it can't be pointing to a prefix of something that
looks like a number.  This is all fine, except that __LINE__
does not prevent implicit concatenation from happening.  Fix
__LINE__ to not do this.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56818 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/LiteralSupport.cpp
lib/Lex/PPMacroExpansion.cpp