]> granicus.if.org Git - clang/commitdiff
add a fixme.
authorChris Lattner <sabre@nondot.org>
Mon, 30 Aug 2010 17:11:14 +0000 (17:11 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 30 Aug 2010 17:11:14 +0000 (17:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112491 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/Lexer.cpp

index 5d32c72884f5abccb03b40fc2d6f8c3cc6416ee8..dabc15951ff380a48733f1c0b98204e46cb84997 100644 (file)
@@ -926,7 +926,11 @@ FinishIdentifier:
 }
 
 /// 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'));
 }