aboutsummaryrefslogtreecommitdiff
path: root/lib/Lex/Lexer.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-08-30 17:11:14 +0000
committerChris Lattner <sabre@nondot.org>2010-08-30 17:11:14 +0000
commit4a551000bee716ac8b1bbe16134a53f0ad221a5a (patch)
treeff9fbae52350c41381a381ec5a7ddcf7c035eee2 /lib/Lex/Lexer.cpp
parentb2f4a20ddc281b194caa00e850ad74759e0d50ba (diff)
add a fixme.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112491 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Lexer.cpp')
-rw-r--r--lib/Lex/Lexer.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Lex/Lexer.cpp b/lib/Lex/Lexer.cpp
index 5d32c72884..dabc15951f 100644
--- a/lib/Lex/Lexer.cpp
+++ b/lib/Lex/Lexer.cpp
@@ -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'));
}