summaryrefslogtreecommitdiffstats
path: root/clang/test/Rewriter
Commit message (Collapse)AuthorAgeFilesLines
...
* Implement conditional block invocation rewriteFariborz Jahanian2009-12-151-0/+80
| | | | | | and some clean up and a block rewriter test. llvm-svn: 91435
* Make tests use the new clang -cc1 flag.Fariborz Jahanian2009-12-1431-32/+32
| | | | llvm-svn: 91299
* Integrate the following from the 'objective-rewrite' branch:Steve Naroff2009-12-051-1/+16
| | | | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=71225 http://llvm.org/viewvc/llvm-project?view=rev&revision=73207 http://llvm.org/viewvc/llvm-project?view=rev&revision=73414 llvm-svn: 90677
* Use '-o' '-' instead of '-o=-' in tests.Daniel Dunbar2009-11-2925-25/+25
| | | | llvm-svn: 90067
* Eliminate &&s in tests.Daniel Dunbar2009-11-081-1/+1
| | | | | | - 'for i in $(find . -type f); do sed -e 's#\(RUN:.*[^ ]\) *&& *$#\1#g' $i | FileUpdate $i; done', for the curious. llvm-svn: 86430
* Prep for new warning.Mike Stump2009-07-224-5/+5
| | | | llvm-svn: 76709
* Rename clang to clang-cc.Daniel Dunbar2009-03-2431-32/+32
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Extend builtin "attribute" syntax to include a notation forDouglas Gregor2009-02-141-1/+2
| | | | | | | | | | | | | | | | | | | | | printf-like functions, both builtin functions and those in the C library. The function-call checker now queries this attribute do determine if we have a printf-like function, rather than scanning through the list of "known functions IDs". However, there are 5 functions they are not yet "builtins", so the function-call checker handles them specifically still: - fprintf and vfprintf: the builtins mechanism cannot (yet) express FILE* arguments, so these can't be encoded. - NSLog: the builtins mechanism cannot (yet) express NSString* arguments, so this (and NSLogv) can't be encoded. - asprintf and vasprintf: these aren't part of the C99 standard library, so we really shouldn't be defining them as builtins in the general case (and we don't seem to have the machinery to make them builtins only on certain targets and depending on whether extensions are enabled). llvm-svn: 64512
* Fix <rdar://problem/6465284> clang ObjC rewriter: objc_super messed up again.Steve Naroff2008-12-231-0/+3
| | | | llvm-svn: 61384
* Fix <rdar://problem/6429113> clang ObjC rewriter: crash rewriting file with ↵Steve Naroff2008-12-091-0/+1
| | | | | | | | Blocks and properties More fancy footwork to cope with rewriting property 'setters'. llvm-svn: 60760
* Handle chained/nested property 'getters' (obj.p1.p2.p3).Steve Naroff2008-12-081-0/+53
| | | | | | This is a follow-up to fixing <rdar://problem/6213955> clang ObjC rewriter: rewriter doesn't appear to support @property and @synthesize. llvm-svn: 60700
* Fixed <rdar://problem/6213808> clang ObjC rewriter: @finally is not always ↵Steve Naroff2008-12-051-0/+26
| | | | | | executed llvm-svn: 60593
* instead of forcing blocks on by default, make them default to off, but letChris Lattner2008-12-041-1/+1
| | | | | | | | specific targets default them to on. Default blocks to on on 10.6 and later. Add a -fblocks option that allows the user to override the target's default. Use -fblocks in the various testcases that use blocks. llvm-svn: 60563
* Fix <rdar://problem/6291588> assertion failure: SourceManager.h line 489.Steve Naroff2008-11-191-0/+11
| | | | llvm-svn: 59664
* Tighten up blocks rewriter to handle casts and some other interesting cases.Steve Naroff2008-10-151-0/+11
| | | | | | This fixes <rdar://problem/6289007> clang block rewriter: ^ in cast is not rewritten. llvm-svn: 57591
* Teach block rewriter to replace '^' with '*' in VarDecls.Steve Naroff2008-09-231-0/+27
| | | | | | | | Since we don't have DeclGroup's and location information for types, there is some fancy footwork to do this fairly reliably. O.K...it's a kludge. One day, we can use this as motivation to do this more gracefully:-) llvm-svn: 56499
* Fix crasher in RewriteObjC::RewriteObjCSynchronizedStmt(). Can't depend on ↵Steve Naroff2008-08-191-0/+4
| | | | | | | | the source locations of the sync expression (since it may have been rewritten. Fixes <rdar://problem/6156363> clang ObjC rewriter: rewriting attached file causes assertion failure: invalid FileID llvm-svn: 54986
* Fix a test RUN line to not generate '=-' in test directoryDaniel Dunbar2008-07-211-1/+1
| | | | llvm-svn: 53865
* RewriteObjC::RewriteObjCTryStmt():Don't synthesize a catch begin if there ↵Steve Naroff2008-07-161-7/+11
| | | | | | | | are 0 catch clauses. This fixes <rdar://problem/5987211> clang ObjC rewriter: @try / @finally block produces unbalanced output. llvm-svn: 53679
* Switch 'super' from being a weird cast thing to being a predefined expr node.Chris Lattner2008-06-211-1/+1
| | | | | | Patch by David Chisnall with objc rewriter and stmtdumper updates from me. llvm-svn: 52580
* Multiple tests in a single test file must be linked with '&&'.Argyrios Kyrtzidis2008-06-121-1/+1
| | | | | | Otherwise, failing tests other than the last one will not be reported. llvm-svn: 52231
* Don't include objc.h, so the rewriter tests work on machines without it.Eli Friedman2008-06-071-2/+0
| | | | llvm-svn: 52082
* fix a nasty off-by-one error.Chris Lattner2008-05-231-0/+14
| | | | llvm-svn: 51519
* fix an inconsistency computing offsets that caused a crash on rewrite-nest.mChris Lattner2008-05-231-0/+29
| | | | llvm-svn: 51514
* Rename RewriteTest->RewriteObjC.Steve Naroff2008-04-1426-27/+27
| | | | llvm-svn: 49692
* Only have the rewriter produce a file when there are no errors.Steve Naroff2008-03-281-1/+1
| | | | llvm-svn: 48926
* Fix rewriter tests to work with new output file logic. This changes forces ↵Steve Naroff2008-03-2625-25/+25
| | | | | | the output to standard out (rather than generate a .cpp file, which is the new default for the rewriter). llvm-svn: 48847
* Teach the rewriter how to respect the -o option.Chris Lattner2008-03-221-1/+1
| | | | llvm-svn: 48669
* Two fixes to RewriteTest::RewriteObjCIvarRefExpr():Steve Naroff2008-03-121-0/+1
| | | | | | | | - For explicit ivar refers, make sure the cast is propagated to the AST. - Don't free the base (since it is still in use). This fixes the recent regression to test/Rewriter/objc-ivar-receiver-1.m. llvm-svn: 48309
* Since the rewriter now outputs C++, it no longer makes sense to pipe the ↵Steve Naroff2008-03-1216-16/+16
| | | | | | | | output to clang. This should "fix" all but one of the test failure. llvm-svn: 48275
* Fix two rewriter bugs with @catch.Steve Naroff2008-02-011-2/+7
| | | | | | | - Support @catch(...), rather than crash:-) - Make sure all catch bodies get rewritten. This "fix" is really a workaround until the iterator for the "try" AST is fixed. Will fix this in a separate commit. llvm-svn: 46644
* Moved "Rewriter" tests from test/Sema to test/Rewriter.Ted Kremenek2008-02-0126-0/+563
llvm-svn: 46640
OpenPOWER on IntegriCloud