summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex
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
commit5f183aa5928c9685f450bac8ec79b0a446f161e2 (patch)
tree8dbd28e1e3878a10c1e799454b5187e573e056c4 /clang/lib/Lex
parent7a9e9e7d76fe2fbd225b177e7c39be6912f451e4 (diff)
downloadbcm5719-llvm-5f183aa5928c9685f450bac8ec79b0a446f161e2.tar.gz
bcm5719-llvm-5f183aa5928c9685f450bac8ec79b0a446f161e2.zip
add a fixme.
llvm-svn: 112491
Diffstat (limited to 'clang/lib/Lex')
-rw-r--r--clang/lib/Lex/Lexer.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp
index 5d32c72884f..dabc15951ff 100644
--- a/clang/lib/Lex/Lexer.cpp
+++ b/clang/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'));
}
OpenPOWER on IntegriCloud