commit | 5ca5d40cf4092bc55781e32b92525c6b4ce4c446 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sat Apr 18 06:38:24 2009 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sat Apr 18 06:38:24 2009 +0000 |
tree | 000790601c2b83a8d00a1536e409ccc07284a8e5 | |
parent | 652d82a096996d5ee7665b2905742e1a23364862 [diff] [blame] |
second half of PR3940: #line requires simple digit sequence. llvm-svn: 69422
diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp index e4b36fd..3d31274 100644 --- a/clang/lib/Lex/PPDirectives.cpp +++ b/clang/lib/Lex/PPDirectives.cpp
@@ -654,7 +654,8 @@ // 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; }