]> granicus.if.org Git - clang/commit
Fix a weird inconsistency with hex floats. Previously the lexer
authorChris Lattner <sabre@nondot.org>
Sat, 22 Nov 2008 07:39:03 +0000 (07:39 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 22 Nov 2008 07:39:03 +0000 (07:39 +0000)
commit4984212fced6d9c6538ebb7319839105e3880b45
tree4d10500aafdd2d02a85445cfacd9a0321034a599
parentac92d829111bc19d1cc97cd85c3c04bc39b969d1
Fix a weird inconsistency with hex floats.  Previously the lexer
would not eat the "-1" in "0x0p-1", but LiteralSupport would accept
it when extensions are on.  This caused strangeness and failures
when hexfloats were properly treated as an extension (not error)
in LiteralSupport.

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