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'));
}
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits