[cfe-commits] r112491 - /cfe/trunk/lib/Lex/Lexer.cpp
Chris Lattner
sabre at nondot.org
Mon Aug 30 10:11:14 PDT 2010
Author: lattner
Date: Mon Aug 30 12:11:14 2010
New Revision: 112491
URL: http://llvm.org/viewvc/llvm-project?rev=112491&view=rev
Log:
add a fixme.
Modified:
cfe/trunk/lib/Lex/Lexer.cpp
Modified: cfe/trunk/lib/Lex/Lexer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/Lexer.cpp?rev=112491&r1=112490&r2=112491&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/Lexer.cpp (original)
+++ cfe/trunk/lib/Lex/Lexer.cpp Mon Aug 30 12:11:14 2010
@@ -926,7 +926,11 @@
}
/// isHexaLiteral - Return true if Start points to a hex constant.
-static inline bool isHexaLiteral(const char* Start, const char* End) {
+/// FIXME: This isn't correct, it will mislex:
+/// 0\
+/// x1234e+1
+/// in microsoft mode (where this is supposed to be several different tokens).
+static inline bool isHexaLiteral(const char *Start, const char *End) {
return ((End - Start > 2) && Start[0] == '0' &&
(Start[1] == 'x' || Start[1] == 'X'));
}
More information about the cfe-commits
mailing list