summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/_Pragma.c
Commit message (Collapse)AuthorAgeFilesLines
* Improved error recovery for _PragmaHubert Tong2015-07-301-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 _PragmaReid Kleckner2014-08-141-0/+2
| | | | | | Fixes PR20662. llvm-svn: 215672
* PR17359: Fix off-by-one OOB on _Pragma("") and an unescaping bugReid Kleckner2013-09-251-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 Dunbar2009-12-151-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 Lattner2009-05-131-1/+7
| | | | llvm-svn: 71643
* convert test to use -verify Chris Lattner2009-05-131-2/+2
| | | | llvm-svn: 71642
* rename testChris Lattner2009-05-131-0/+4
llvm-svn: 71641
OpenPOWER on IntegriCloud