Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move <root>/Driver into <root>/tools/clang-cc. | Daniel Dunbar | 2009-03-24 | 1 | -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 Kooijman | 2008-10-20 | 1 | -1/+1 |
| | | | | llvm-svn: 57818 | ||||
* | make the -rewrite-test a bit more interesting: it now | Chris Lattner | 2008-10-12 | 1 | -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 file | Chris Lattner | 2008-10-12 | 1 | -1/+9 |
| | | | | | | and lets a client iterate over it. llvm-svn: 57407 | ||||
* | Add a new -rewrite-test option, which is basically a | Chris Lattner | 2008-10-12 | 1 | -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 Naroff | 2008-04-14 | 1 | -2990/+0 |
| | | | | llvm-svn: 49693 | ||||
* | Rename RewriteTest->RewriteObjC. | Steve Naroff | 2008-04-14 | 1 | -63/+63 |
| | | | | llvm-svn: 49692 | ||||
* | Use isFromMainFile instead of comparing FileIDs directly. | Ted Kremenek | 2008-04-14 | 1 | -1/+1 |
| | | | | llvm-svn: 49687 | ||||
* | silence some warnings when assertions are disabled. | Chris Lattner | 2008-04-08 | 1 | -12/+10 |
| | | | | llvm-svn: 49372 | ||||
* | This patch contains these changes: | Chris Lattner | 2008-04-06 | 1 | -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 Naroff | 2008-04-04 | 1 | -4/+2 |
| | | | | llvm-svn: 49241 | ||||
* | Rewrite @package (an ObjC 2.0 idiom). | Steve Naroff | 2008-04-04 | 1 | -0/+1 |
| | | | | llvm-svn: 49238 | ||||
* | Fix MS-specific bug in RewriteTest::RewriteObjCMethodDecl(). | Steve Naroff | 2008-04-04 | 1 | -3/+2 |
| | | | | llvm-svn: 49237 | ||||
* | Introduce ContextDecl, patch by Argiris Kirtzidis! | Chris Lattner | 2008-04-04 | 1 | -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 Naroff | 2008-03-28 | 1 | -30/+39 |
| | | | | llvm-svn: 48926 | ||||
* | Add some of Ted's recent work to the VC++ project file. | Steve Naroff | 2008-03-27 | 1 | -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 Naroff | 2008-03-27 | 1 | -79/+75 |
| | | | | llvm-svn: 48899 | ||||
* | Add a couple files to VC++ project and cleanup an "#if 0". | Steve Naroff | 2008-03-24 | 1 | -2/+0 |
| | | | | llvm-svn: 48748 | ||||
* | Teach the rewriter how to respect the -o option. | Chris Lattner | 2008-03-22 | 1 | -7/+30 |
| | | | | llvm-svn: 48669 | ||||
* | Fix <rdar://problem/5716940> rewriter generates invalid C code when no ↵ | Steve Naroff | 2008-03-18 | 1 | -1/+2 |
| | | | | | | selector found. llvm-svn: 48479 | ||||
* | Wrap up __NSConstantStringImpl (the replacement for ↵ | Steve Naroff | 2008-03-18 | 1 | -7/+5 |
| | | | | | | __builtin___CFStringMakeConstantString). llvm-svn: 48477 | ||||
* | make property addition work list all other "add" methods. Do | Chris Lattner | 2008-03-16 | 1 | -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 Lattner | 2008-03-16 | 1 | -6/+7 |
| | | | | llvm-svn: 48429 | ||||
* | minor cleanups, make getNumInstanceMethods always return unsigned. | Chris Lattner | 2008-03-16 | 1 | -7/+5 |
| | | | | llvm-svn: 48423 | ||||
* | Make the parameter count of ObjCMethodDecl unsigned, you | Chris Lattner | 2008-03-16 | 1 | -2/+2 |
| | | | | | | can't have negative arguments. llvm-svn: 48407 | ||||
* | switch the rest of the C decl classes to do their | Chris Lattner | 2008-03-16 | 1 | -2/+4 |
| | | | | | | allocation through ASTContext. llvm-svn: 48403 | ||||
* | move the ASTContext argument to be first in the argument list of | Chris Lattner | 2008-03-15 | 1 | -15/+14 |
| | | | | | | all Create methods. llvm-svn: 48398 | ||||
* | Switch over functiondecl. This makes it obvious that the ASTContext | Chris Lattner | 2008-03-15 | 1 | -10/+11 |
| | | | | | | argument to Create should be first, not last. llvm-svn: 48397 | ||||
* | switch the VarDecl allocation model to go through ASTContext. | Chris Lattner | 2008-03-15 | 1 | -2/+2 |
| | | | | llvm-svn: 48396 | ||||
* | start switching decls over to using an allocator controlled by ASTContext. | Chris Lattner | 2008-03-15 | 1 | -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 Naroff | 2008-03-15 | 1 | -5/+4 |
| | | | | | | (__CFConstantStringClassReference) and fix length computation (removing a FIXME). llvm-svn: 48384 | ||||
* | Remove ObjC rewriter dependency on GCC's __builtin___CFStringMakeConstantString. | Steve Naroff | 2008-03-15 | 1 | -64/+69 |
| | | | | llvm-svn: 48383 | ||||
* | Two fixes to RewriteTest::RewriteObjCIvarRefExpr(): | Steve Naroff | 2008-03-12 | 1 | -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 Naroff | 2008-03-12 | 1 | -4/+2 |
| | | | | llvm-svn: 48304 | ||||
* | Avoid using the "unnamed struct field" extension (enabled with ↵ | Steve Naroff | 2008-03-12 | 1 | -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 Naroff | 2008-03-12 | 1 | -11/+11 |
| | | | | | | doesn't happen when compiling straight C code. llvm-svn: 48287 | ||||
* | -Add missing visitor for ObjCIvarRefExpr. | Steve Naroff | 2008-03-12 | 1 | -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 Naroff | 2008-03-12 | 1 | -28/+35 |
| | | | | | | meta-data). llvm-svn: 48271 | ||||
* | Make ivar rewrite C++ friendly (since C++ forces a unified namespace for ↵ | Steve Naroff | 2008-03-12 | 1 | -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 Naroff | 2008-03-11 | 1 | -7/+16 |
| | | | | | | commit). llvm-svn: 48235 | ||||
* | Make "super" rewrite C++ friendly (since it doesn't support Compound Literals). | Steve Naroff | 2008-03-11 | 1 | -9/+47 |
| | | | | llvm-svn: 48230 | ||||
* | Generate meta-data in a C++ compatible way (remove 2 dependencies on C ↵ | Steve Naroff | 2008-03-11 | 1 | -23/+26 |
| | | | | | | "flexible array member" idiom and perform some extra casts). llvm-svn: 48202 | ||||
* | Missed a couple "_IMPL" suffixes. | Steve Naroff | 2008-03-10 | 1 | -0/+4 |
| | | | | llvm-svn: 48191 | ||||
* | Fix dangling pointer and give the implementation struct for a class a unique ↵ | Steve Naroff | 2008-03-10 | 1 | -52/+58 |
| | | | | | | name. llvm-svn: 48190 | ||||
* | Pass LangOptions to RewriteTest(). | Steve Naroff | 2008-03-10 | 1 | -4/+19 |
| | | | | llvm-svn: 48172 | ||||
* | remove the source location arguments to various target query methods. | Chris Lattner | 2008-03-05 | 1 | -3/+2 |
| | | | | llvm-svn: 47954 | ||||
* | Make sure to propagate qualifiers through the member operator. | Eli Friedman | 2008-02-06 | 1 | -1/+1 |
| | | | | llvm-svn: 46830 | ||||
* | Minor API cleanup... | Steve Naroff | 2008-02-01 | 1 | -1/+1 |
| | | | | llvm-svn: 46649 | ||||
* | Remove temporary workaround (thanks to Ted for fixing ObjCAtCatchStmt so ↵ | Steve Naroff | 2008-02-01 | 1 | -3/+0 |
| | | | | | | quickly:-). llvm-svn: 46648 | ||||
* | Fix two rewriter bugs with @catch. | Steve Naroff | 2008-02-01 | 1 | -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 |