summaryrefslogtreecommitdiffstats
path: root/clang/test/Lexer
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix a lexer bug where we incorrectly rejectedChris Lattner2007-07-211-0/+3
| | | | | | | | int i = /*/ */ 1; Thanks to Neil for pointing this out. llvm-svn: 40379
* Make octal constant lexing use AdvanceToTokenCharacter to give moreChris Lattner2007-07-161-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. llvm-svn: 39906
* Add support for C++'0x keywords, patch by Doug GregorChris Lattner2007-07-162-0/+4
| | | | llvm-svn: 39897
* fix this test to work with the checker.Chris Lattner2007-06-281-14/+9
| | | | llvm-svn: 39708
* Submitted by: Bill WendlingBill Wendling2007-06-272-6/+4
| | | | | | - Revert use of -parse-ast-check. llvm-svn: 39695
* Submitted by: Bill WendlingBill Wendling2007-06-273-2/+7
| | | | | | | | Reviewed by: Chris Lattner - Reverted some checks because they're checking the preprocessor output. llvm-svn: 39687
* Submitted by: Bill WendlingBill Wendling2007-06-274-16/+21
| | | | | | | - Convert to using the -parse-ast-check method to check warnings and errors. llvm-svn: 39680
* new testcaseChris Lattner2006-10-171-0/+4
| | | | llvm-svn: 38996
* new testcaseChris Lattner2006-07-201-0/+8
| | | | llvm-svn: 38750
* new testcaseChris Lattner2006-07-111-0/+2
| | | | llvm-svn: 38704
* new testcaseChris Lattner2006-06-181-0/+24
| | | | llvm-svn: 38544
* Initial checkin of testsuiteChris Lattner2006-06-181-0/+7
llvm-svn: 38538
OpenPOWER on IntegriCloud