summaryrefslogtreecommitdiffstats
path: root/clang/Driver/RewriteTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Add new API to rewrite one stmt/expr with another.Chris Lattner2007-10-171-10/+11
| | | | llvm-svn: 43101
* Add rewriter support for @encode expressions. For example,Chris Lattner2007-10-171-4/+4
| | | | | | | | | | | | | | | we currently turn: c = @encode(char *)[2] + 4; into: c = "foo"[2] + 4; Right now the foo string is hard coded, but you can imagine a world where it wouldn't be :) llvm-svn: 43093
* Fix location processing of @encode: the range should include the @ sign.Chris Lattner2007-10-161-1/+1
| | | | | | @selector probably gets this wrong also. llvm-svn: 43048
* Add a new Rewriter::getRangeSize method.Chris Lattner2007-10-161-0/+29
| | | | | | | | Rename SourceRange::Begin()/End() to getBegin()/getEnd() for consistency with other code. Start building the rewriter towards handling @encode. llvm-svn: 43047
* Push the rewriter forward a bit more. Now it rewritesChris Lattner2007-10-161-9/+48
| | | | | | #import to #include's as a test. llvm-svn: 43041
* haha, my devious plot is complete:Chris Lattner2007-10-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | $ clang rewrite.c -rewrite-test prints: int foo() { b: foo(); f: foo(); foo(); } for: int foo() { b: foo(); f: foo(); foo(); } amazing. llvm-svn: 42944
* another step forward in rewriter stuff. This still hasChris Lattner2007-10-131-2/+3
| | | | | | | some incredibly subtle details that I'm working on getting right. llvm-svn: 42940
* Push the rewriting APIs along. Build a trivial client that replaces tabsChris Lattner2007-10-111-8/+58
| | | | | | | with x's for now. The APIs are all unimplemented, so it doesn't do anything yet! :) llvm-svn: 42868
* add scafolding to play around with and bring up the code rewriter.Chris Lattner2007-10-111-0/+43
llvm-svn: 42855
OpenPOWER on IntegriCloud