summaryrefslogtreecommitdiffstats
path: root/clang/Driver/RewriteTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Move <root>/Driver into <root>/tools/clang-cc.Daniel Dunbar2009-03-241-40/+0
| | | | | | Again, I tried to update cmake but it is untested. llvm-svn: 67605
* Add newline at the end of file, to silence compiler warning.Matthijs Kooijman2008-10-201-1/+1
| | | | llvm-svn: 57818
* make the -rewrite-test a bit more interesting: it now Chris Lattner2008-10-121-20/+11
| | | | | | | wraps comments in <i> tags. Extend rewrite tokens to support this minimal functionality. llvm-svn: 57409
* start implementing a token rewriter. At this point, it just reads in a fileChris Lattner2008-10-121-1/+9
| | | | | | and lets a client iterate over it. llvm-svn: 57407
* Add a new -rewrite-test option, which is basically a Chris Lattner2008-10-121-0/+41
| | | | | | | playground to experiment with some new rewriter approaches. For now it is probably the most complex version of 'cat' ever invented. llvm-svn: 57406
* Rename a file and update the Xcode project.Steve Naroff2008-04-141-2990/+0
| | | | llvm-svn: 49693
* Rename RewriteTest->RewriteObjC.Steve Naroff2008-04-141-63/+63
| | | | llvm-svn: 49692
* Use isFromMainFile instead of comparing FileIDs directly.Ted Kremenek2008-04-141-1/+1
| | | | llvm-svn: 49687
* silence some warnings when assertions are disabled.Chris Lattner2008-04-081-12/+10
| | | | llvm-svn: 49372
* This patch contains these changes:Chris Lattner2008-04-061-4/+2
| | | | | | | | | | -Renamed ContextDecl -> DeclContext -Removed DeclContext pointer from FieldDecl -EnumDecl inherits from DeclContext, instead of TagDecl Patch by Argiris Kirtzidis! llvm-svn: 49261
* Avoid implicitly including any header files (requested by ckane).Steve Naroff2008-04-041-4/+2
| | | | llvm-svn: 49241
* Rewrite @package (an ObjC 2.0 idiom).Steve Naroff2008-04-041-0/+1
| | | | llvm-svn: 49238
* Fix MS-specific bug in RewriteTest::RewriteObjCMethodDecl().Steve Naroff2008-04-041-3/+2
| | | | llvm-svn: 49237
* Introduce ContextDecl, patch by Argiris Kirtzidis!Chris Lattner2008-04-041-18/+31
| | | | | | | | | | | -Added ContextDecl (no TranslationUnitDecl) -ScopedDecl class has a ContextDecl member -FieldDecl class has a ContextDecl member, so that a Field or a ObjCIvar can be traced back to their RecordDecl/ObjCInterfaceDecl easily -FunctionDecl, ObjCMethodDecl, TagDecl, ObjCInterfaceDecl inherit from ContextDecl. With TagDecl as ContextDecl, enum constants have a EnumDecl as their context. -Moved Decl class to a "DeclBase.h" along with ContextDecl class -CurContext is handled by Sema llvm-svn: 49208
* Only have the rewriter produce a file when there are no errors.Steve Naroff2008-03-281-30/+39
| | | | llvm-svn: 48926
* Add some of Ted's recent work to the VC++ project file.Steve Naroff2008-03-271-1/+2
| | | | | | Fix a couple bozo bugs in the rewriter. llvm-svn: 48903
* Collect all the preamble code and don't insert it until the end. Steve Naroff2008-03-271-79/+75
| | | | llvm-svn: 48899
* Add a couple files to VC++ project and cleanup an "#if 0".Steve Naroff2008-03-241-2/+0
| | | | llvm-svn: 48748
* Teach the rewriter how to respect the -o option.Chris Lattner2008-03-221-7/+30
| | | | llvm-svn: 48669
* Fix <rdar://problem/5716940> rewriter generates invalid C code when no ↵Steve Naroff2008-03-181-1/+2
| | | | | | selector found. llvm-svn: 48479
* Wrap up __NSConstantStringImpl (the replacement for ↵Steve Naroff2008-03-181-7/+5
| | | | | | __builtin___CFStringMakeConstantString). llvm-svn: 48477
* make property addition work list all other "add" methods. Do Chris Lattner2008-03-161-3/+3
| | | | | | the allocation in the class, not in sema. llvm-svn: 48433
* Convert more counts to be zero based instead of -1 based, make them unsigned.Chris Lattner2008-03-161-6/+7
| | | | llvm-svn: 48429
* minor cleanups, make getNumInstanceMethods always return unsigned.Chris Lattner2008-03-161-7/+5
| | | | llvm-svn: 48423
* Make the parameter count of ObjCMethodDecl unsigned, youChris Lattner2008-03-161-2/+2
| | | | | | can't have negative arguments. llvm-svn: 48407
* switch the rest of the C decl classes to do their Chris Lattner2008-03-161-2/+4
| | | | | | allocation through ASTContext. llvm-svn: 48403
* move the ASTContext argument to be first in the argument list of Chris Lattner2008-03-151-15/+14
| | | | | | all Create methods. llvm-svn: 48398
* Switch over functiondecl. This makes it obvious that the ASTContextChris Lattner2008-03-151-10/+11
| | | | | | argument to Create should be first, not last. llvm-svn: 48397
* switch the VarDecl allocation model to go through ASTContext.Chris Lattner2008-03-151-2/+2
| | | | llvm-svn: 48396
* start switching decls over to using an allocator controlled by ASTContext. Chris Lattner2008-03-151-31/+40
| | | | | | | | | | Right now only some ctors are switched over. I need to switch them all over so I can change the dtor over. This lets us experiment with region allocation and other things in the future. llvm-svn: 48390
* Link against the correct ObjC string class ↵Steve Naroff2008-03-151-5/+4
| | | | | | (__CFConstantStringClassReference) and fix length computation (removing a FIXME). llvm-svn: 48384
* Remove ObjC rewriter dependency on GCC's __builtin___CFStringMakeConstantString.Steve Naroff2008-03-151-64/+69
| | | | llvm-svn: 48383
* Two fixes to RewriteTest::RewriteObjCIvarRefExpr():Steve Naroff2008-03-121-7/+8
| | | | | | | | - 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
* Minor aesthetic improvement (after I reviewed my last commit).Steve Naroff2008-03-121-4/+2
| | | | llvm-svn: 48304
* Avoid using the "unnamed struct field" extension (enabled with ↵Steve Naroff2008-03-121-17/+11
| | | | | | -fms-extensions). This feature/extension silently does the wrong thing in g++. As far as I can tell, g++ simply throws the field away entirely (note that it works fine with gcc). Since I am now always casting the object (for other reasons), accessing protected/public fields simply requires the cast refer to the defining class. This solution is simpler all around (thanks to Chris for suggesting it). llvm-svn: 48302
* Use the "used" attribute. Without it, g++ removes all the meta-data:-( This ↵Steve Naroff2008-03-121-11/+11
| | | | | | doesn't happen when compiling straight C code. llvm-svn: 48287
* -Add missing visitor for ObjCIvarRefExpr.Steve Naroff2008-03-121-2/+7
| | | | | | -Wrap objc runtime calls with "extern "C"" (for now). llvm-svn: 48284
* Remove more dependencies on C "flexible array member" idiom (when generating ↵Steve Naroff2008-03-121-28/+35
| | | | | | meta-data). llvm-svn: 48271
* Make ivar rewrite C++ friendly (since C++ forces a unified namespace for ↵Steve Naroff2008-03-121-30/+36
| | | | | | typedefs/structures). The previous version of the rewriter generated both a type def and structure def for each class (which doesn't fly in C++). llvm-svn: 48266
* Make "super" rewrite for class methods C++ friendly (follow-up from last ↵Steve Naroff2008-03-111-7/+16
| | | | | | commit). llvm-svn: 48235
* Make "super" rewrite C++ friendly (since it doesn't support Compound Literals).Steve Naroff2008-03-111-9/+47
| | | | llvm-svn: 48230
* Generate meta-data in a C++ compatible way (remove 2 dependencies on C ↵Steve Naroff2008-03-111-23/+26
| | | | | | "flexible array member" idiom and perform some extra casts). llvm-svn: 48202
* Missed a couple "_IMPL" suffixes.Steve Naroff2008-03-101-0/+4
| | | | llvm-svn: 48191
* Fix dangling pointer and give the implementation struct for a class a unique ↵Steve Naroff2008-03-101-52/+58
| | | | | | name. llvm-svn: 48190
* Pass LangOptions to RewriteTest().Steve Naroff2008-03-101-4/+19
| | | | llvm-svn: 48172
* remove the source location arguments to various target query methods.Chris Lattner2008-03-051-3/+2
| | | | llvm-svn: 47954
* Make sure to propagate qualifiers through the member operator.Eli Friedman2008-02-061-1/+1
| | | | llvm-svn: 46830
* Minor API cleanup...Steve Naroff2008-02-011-1/+1
| | | | llvm-svn: 46649
* Remove temporary workaround (thanks to Ted for fixing ObjCAtCatchStmt so ↵Steve Naroff2008-02-011-3/+0
| | | | | | quickly:-). llvm-svn: 46648
* Fix two rewriter bugs with @catch.Steve Naroff2008-02-011-1/+18
| | | | | | | - 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
OpenPOWER on IntegriCloud