34f3bcf7f2907f618f7a10d919bda47e53db60dd |
|
26-Jul-2013 |
Eli Friedman <eli.friedman@gmail.com> |
Partially revert r186903. It turns out that Plum Hall depends on us not emitting an error on integer literals which fit into long long, but fit into unsigned long long. So C99 conformance requires not conforming to C99. :) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187172 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Lexer/constants.c
|
b3da613977f6b77dee2b382eeff5713168a4ca18 |
|
23-Jul-2013 |
Eli Friedman <eli.friedman@gmail.com> |
Integers which are too large should be an error. Switch some warnings over to errors which should never have been warnings in the first place. (Also, a minor fix to the preprocessor rules for integer literals while I'm here.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186903 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Lexer/constants.c
|
7748cbc97ff9c6c3940549d30965a10b47a45ee8 |
|
18-Jan-2012 |
Seth Cantrell <seth.cantrell@gmail.com> |
Add and update tests for character literals git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148392 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Lexer/constants.c
|
0473cd52eac6f1e831777ed899be3ea4509c7b24 |
|
19-Aug-2011 |
Craig Topper <craig.topper@gmail.com> |
Warn about and truncate UCNs that are too big for their character literal type. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138031 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Lexer/constants.c
|
091f23f1d6d4bcffd6641cda72a6831e08c02ea7 |
|
09-Nov-2010 |
John McCall <rjmccall@apple.com> |
Split out -Wconversion warnings about constant precision into their own subcategory, -Wconstant-conversion, which is on by default. Tweak the constant folder to give better results in the invalid case of a negative shift amount. Implements rdar://problem/6792488 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118636 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Lexer/constants.c
|
295a637416d4bddf5b3d766d9f630a0028596176 |
|
19-Aug-2010 |
Eli Friedman <eli.friedman@gmail.com> |
Test for PR7888. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111545 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Lexer/constants.c
|
d80f786689d608e5c22d6e1045884de7aff76c40 |
|
08-Jul-2010 |
Chris Lattner <sabre@nondot.org> |
fix PR4499, patch by Kyle Dean! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107836 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Lexer/constants.c
|
2a0d7574acaa3a8d516e9ae4b720755460ebe8a8 |
|
27-Feb-2010 |
John McCall <rjmccall@apple.com> |
At sabre's request, drop the FP bounds diagnostics down to warnings and file them under -Wbad-literal. They're still on by default. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97284 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Lexer/constants.c
|
94c939dc1d4958b62ea5a89294dd8b2905f3191f |
|
24-Dec-2009 |
John McCall <rjmccall@apple.com> |
Diagnose out-of-bounds floating-point constants. Fixes rdar://problem/6974641 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92127 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Lexer/constants.c
|
a5728872c7702ddd09537c95bc3cbd20e1f2fb09 |
|
15-Dec-2009 |
Daniel Dunbar <daniel@zuster.org> |
Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91446 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Lexer/constants.c
|
e8fa06e07363b6d5e6c371bbd454d51bab78d01d |
|
12-May-2009 |
Chris Lattner <sabre@nondot.org> |
accept "#pragma clang foo" where we accept "#pragma GCC foo". git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71572 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Lexer/constants.c
|
e3ad881e4e9620e941dabd4e78dacdb028b85682 |
|
28-Apr-2009 |
Chris Lattner <sabre@nondot.org> |
Implement -Wfour-char-constants, which is an extension, not an extwarn, and apparently not part of -Wall git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70329 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Lexer/constants.c
|
b77f41e66f736e9e67a9d39c47c747804b22c6b9 |
|
28-Apr-2009 |
Chris Lattner <sabre@nondot.org> |
implement -Wmultichar git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70315 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Lexer/constants.c
|
2dec3a1aa161fdd4a8dd650eee522c020490732f |
|
28-Apr-2009 |
Chris Lattner <sabre@nondot.org> |
merge number.c into constants.c and start running it in -verify mode. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70310 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Lexer/constants.c
|
d7d5f0223bd30dfd618762349c6209dd1d5ea3e6 |
|
24-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Rename clang to clang-cc. Tests and drivers updated, still need to shuffle dirs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67602 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Lexer/constants.c
|
3b427b3ba518f7a7293458c2d3d92eebd8458d87 |
|
11-Oct-2007 |
Chris Lattner <sabre@nondot.org> |
rename -parse-ast-print to -ast-print rename -parse-ast-dump to -ast-dump remove -parse-ast, which is redundant with -fsyntax-only git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42852 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Lexer/constants.c
|
9f3d942e9970bc8f51add390b2a2c46b5a2ab747 |
|
26-Sep-2007 |
Ted Kremenek <kremenek@apple.com> |
Removed option "-parse-ast-check" from clang driver. This is now implemented using "-parse-ast -verify". Updated all test cases (using a sed script) that invoked -parse-ast-check to now use -parse-ast -verify. Fixed a bug where using "-verify" instead of "-parse-ast-check" would not correctly create the DiagClient needed to accumulate diagnostics. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42365 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Lexer/constants.c
|
136f93a2b660fc780fc2dba82a6f42ca4dc9164a |
|
16-Jul-2007 |
Chris Lattner <sabre@nondot.org> |
Make octal constant lexing use AdvanceToTokenCharacter to give more accurate diagnostics. For test/Lexer/comments.c we now emit: int x = 000000080; /* expected-error {{invalid digit}} */ ^ constants.c:7:4: error: invalid digit '8' in octal constant 00080; /* expected-error {{invalid digit}} */ ^ The last line is due to an escaped newline. The full line looks like: int y = 0000\ 00080; /* expected-error {{invalid digit}} */ Previously, we emitted: constants.c:4:9: error: invalid digit '8' in octal constant int x = 000000080; /* expected-error {{invalid digit}} */ ^ constants.c:6:9: error: invalid digit '8' in octal constant int y = 0000\ ^ which isn't too bad, but the new way is better for the user, regardless of whether there is an escaped newline or not. All the other lexer-related diagnostics should switch over to using AdvanceToTokenCharacter where appropriate. Help wanted :). This implements test/Lexer/constants.c. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39906 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Lexer/constants.c
|