From 5ca5d40cf4092bc55781e32b92525c6b4ce4c446 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 18 Apr 2009 06:38:24 +0000 Subject: second half of PR3940: #line requires simple digit sequence. llvm-svn: 69422 --- clang/lib/Lex/PPDirectives.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang/lib/Lex') diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp index e4b36fd1573..3d312748f95 100644 --- a/clang/lib/Lex/PPDirectives.cpp +++ b/clang/lib/Lex/PPDirectives.cpp @@ -654,7 +654,8 @@ static bool GetLineValue(Token &DigitTok, unsigned &Val, // because it is octal. if (Literal.getRadix() != 10) PP.Diag(DigitTok, diag::warn_pp_line_decimal); - + else if (Literal.hasSuffix()) + PP.Diag(DigitTok, diag::warn_pp_line_digit_sequence); return false; } -- cgit v1.2.3