Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Improved error recovery for _Pragma | Hubert Tong | 2015-07-30 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | | | | | | Summary: Currently, if the argument to _Pragma is not a parenthesised string literal, the bad token will be consumed, as well as the ')', if present. If additional bad tokens are passed to the _Pragma, this results in extra error messages which may distract from the true problem. The proposed patch causes all tokens to be consumed until the closing ')' or a new line, whichever is reached first. Reviewers: hfinkel, rsmith Subscribers: hubert.reinterpretcast, fraggamuffin, rnk, cfe-commits Differential Revision: http://reviews.llvm.org/D8308 Patch by Rachel Craik! llvm-svn: 243692 | ||||
* | Don't Lex past EOF when lexing _Pragma | Reid Kleckner | 2014-08-14 | 1 | -0/+2 |
| | | | | | | Fixes PR20662. llvm-svn: 215672 | ||||
* | PR17359: Fix off-by-one OOB on _Pragma("") and an unescaping bug | Reid Kleckner | 2013-09-25 | 1 | -0/+3 |
| | | | | | | | Previously the code would reduce a run of backslashes to a single backslash, and now it will properly leave behind every other backslash. llvm-svn: 191382 | ||||
* | Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. | Daniel Dunbar | 2009-12-15 | 1 | -1/+1 |
| | | | | | | | | | - 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). llvm-svn: 91446 | ||||
* | Fix rdar://6880630 - # in _Pragma does not start a preprocessor directive. | Chris Lattner | 2009-05-13 | 1 | -1/+7 |
| | | | | llvm-svn: 71643 | ||||
* | convert test to use -verify | Chris Lattner | 2009-05-13 | 1 | -2/+2 |
| | | | | llvm-svn: 71642 | ||||
* | rename test | Chris Lattner | 2009-05-13 | 1 | -0/+4 |
llvm-svn: 71641 |