Ted Kremenek
							
						 
						
							 
							
							
							
							
								
							
							
								09a0d04ea0 
								
							 
						 
						
							
							
								
								Initial work on additional memory collection for ObjC AST objects.  We now  
							
							 
							
							... 
							
							
							
							have Destroy methods of ObjcMethodDecl and ObjCInterfaceDecl which recursively
destroy their owned Decls and Stmts.  There are a few cases where it is not
clear what to do (FIXMEs included in the patch).
llvm-svn: 52050 
							
						 
						
							2008-06-06 16:45:15 +00:00  
						
					 
				
					
						
							
							
								 
								Steve Naroff
							
						 
						
							 
							
							
							
							
								
							
							
								f9c65246dd 
								
							 
						 
						
							
							
								
								Fix <rdar://problem/5987482> clang on xcode: null dereference in Sema::ActOnMemberReferenceExpr.  
							
							 
							
							... 
							
							
							
							In addition to fixing the crasher, this commit fixes further improves property lookup (by searching protocols of qualified interfaces..."NSObject <prot>").
llvm-svn: 52001 
							
						 
						
							2008-06-05 13:55:23 +00:00  
						
					 
				
					
						
							
							
								 
								Steve Naroff
							
						 
						
							 
							
							
							
							
								
							
							
								5ccccf0326 
								
							 
						 
						
							
							
								
								Make sure we look through categories when searching for a classes property.  
							
							 
							
							... 
							
							
							
							Fixes <rdar://problem/5984338> clang on xcode: property implementation must have its declaration in interface 'PBXOpenQuicklyModule'
llvm-svn: 51925 
							
						 
						
							2008-06-04 04:46:04 +00:00  
						
					 
				
					
						
							
							
								 
								Nuno Lopes
							
						 
						
							 
							
							
							
							
								
							
							
								de9746cd45 
								
							 
						 
						
							
							
								
								fix free/delete mismatch problem in add/mergeProperties (found by valgrind)  
							
							 
							
							... 
							
							
							
							llvm-svn: 50945 
							
						 
						
							2008-05-10 10:31:54 +00:00  
						
					 
				
					
						
							
							
								 
								Fariborz Jahanian
							
						 
						
							 
							
							
							
							
								
							
							
								8983f17ba0 
								
							 
						 
						
							
							
								
								Synthesized getter/setter method declarations need not have  
							
							 
							
							... 
							
							
							
							an implementation. This fixes couple of failing prperty tests
caused by my previous patch.
llvm-svn: 50830 
							
						 
						
							2008-05-07 20:53:44 +00:00  
						
					 
				
					
						
							
							
								 
								Fariborz Jahanian
							
						 
						
							 
							
							
							
							
								
							
							
								ec6e4c8096 
								
							 
						 
						
							
							
								
								This patch introduces declaration of getter methods for ObjC2's  
							
							 
							
							... 
							
							
							
							properties. Couple of property tests will fail with this patch.
Will fix them next.
llvm-svn: 50818 
							
						 
						
							2008-05-07 17:43:59 +00:00  
						
					 
				
					
						
							
							
								 
								Fariborz Jahanian
							
						 
						
							 
							
							
							
							
								
							
							
								8d91686b0d 
								
							 
						 
						
							
							
								
								percolate @optional/@required protocols down to ASTs for  
							
							 
							
							... 
							
							
							
							properties declared in the protocol.
llvm-svn: 50662 
							
						 
						
							2008-05-05 18:51:55 +00:00  
						
					 
				
					
						
							
							
								 
								Fariborz Jahanian
							
						 
						
							 
							
							
							
							
								
							
							
								98a6c4fa77 
								
							 
						 
						
							
							
								
								This patch is about merging ObjC2's properties declared in class  
							
							 
							
							... 
							
							
							
							protocols into class's property list and performing semantics
on them for while doing so.
llvm-svn: 50587 
							
						 
						
							2008-05-02 19:17:30 +00:00  
						
					 
				
					
						
							
							
								 
								Fariborz Jahanian
							
						 
						
							 
							
							
							
							
								
							
							
								6efdf1ddab 
								
							 
						 
						
							
							
								
								Patch to build AST for property implementation declarations and  
							
							 
							
							... 
							
							
							
							to print declaration from its AST.
llvm-svn: 50117 
							
						 
						
							2008-04-23 00:06:01 +00:00  
						
					 
				
					
						
							
							
								 
								Fariborz Jahanian
							
						 
						
							 
							
							
							
							
								
							
							
								a591a12ea5 
								
							 
						 
						
							
							
								
								Allow property in base class to be implemented in a  
							
							 
							
							... 
							
							
							
							derived class.
llvm-svn: 50074 
							
						 
						
							2008-04-21 23:57:08 +00:00  
						
					 
				
					
						
							
							
								 
								Fariborz Jahanian
							
						 
						
							 
							
							
							
							
								
							
							
								a054e99fa8 
								
							 
						 
						
							
							
								
								Continuation of work on ObjC2's properties.  
							
							 
							
							... 
							
							
							
							Added iterators, methods to find property and categories.
Use them in doing semantic analysis on property implementation
declarations. Fixed typos.
llvm-svn: 50050 
							
						 
						
							2008-04-21 19:04:53 +00:00  
						
					 
				
					
						
							
							
								 
								Fariborz Jahanian
							
						 
						
							 
							
							
							
							
								
							
							
								8e36cddde0 
								
							 
						 
						
							
							
								
								Added property decl support for protocols.  
							
							 
							
							... 
							
							
							
							Added assertion if unexpected property decls are found where they don't belong.
Consolidated property decl. printing by using a helper function.
llvm-svn: 49862 
							
						 
						
							2008-04-17 18:25:18 +00:00  
						
					 
				
					
						
							
							
								 
								Fariborz Jahanian
							
						 
						
							 
							
							
							
							
								
							
							
								d634dfae0f 
								
							 
						 
						
							
							
								
								Fixed a comment.  
							
							 
							
							... 
							
							
							
							llvm-svn: 49819 
							
						 
						
							2008-04-16 21:11:25 +00:00  
						
					 
				
					
						
							
							
								 
								Fariborz Jahanian
							
						 
						
							 
							
							
							
							
								
							
							
								9d981eb9ae 
								
							 
						 
						
							
							
								
								This patch adds support for declaraing properties in categories,  
							
							 
							
							... 
							
							
							
							just as they are declared in objc classes.
llvm-svn: 49817 
							
						 
						
							2008-04-16 21:08:45 +00:00  
						
					 
				
					
						
							
							
								 
								Fariborz Jahanian
							
						 
						
							 
							
							
							
							
								
							
							
								0152a1a5db 
								
							 
						 
						
							
							
								
								New AST representation for each objc2's property declaration.  
							
							 
							
							... 
							
							
							
							llvm-svn: 49699 
							
						 
						
							2008-04-14 23:36:35 +00:00  
						
					 
				
					
						
							
							
								 
								Fariborz Jahanian
							
						 
						
							 
							
							
							
							
								
							
							
								4572b45574 
								
							 
						 
						
							
							
								
								AST generation for objc2's property declarations.  
							
							 
							
							... 
							
							
							
							llvm-svn: 49565 
							
						 
						
							2008-04-11 23:40:25 +00:00  
						
					 
				
					
						
							
							
								 
								Steve Naroff
							
						 
						
							 
							
							
							
							
								
							
							
								5a4611cdda 
								
							 
						 
						
							
							
								
								Add class and super class location info to ObjCInterfaceDecl...  
							
							 
							
							... 
							
							
							
							llvm-svn: 49553 
							
						 
						
							2008-04-11 19:35:35 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								713e6592be 
								
							 
						 
						
							
							
								
								Fix a bug I introduced in my const'ification patch.  
							
							 
							
							... 
							
							
							
							llvm-svn: 49262 
							
						 
						
							2008-04-06 05:25:03 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								0a5ff0d34a 
								
							 
						 
						
							
							
								
								This patch contains these changes:  
							
							 
							
							... 
							
							
							
							-Renamed ContextDecl -> DeclContext
-Removed DeclContext pointer from FieldDecl
-EnumDecl inherits from DeclContext, instead of TagDecl
Patch by Argiris Kirtzidis!
llvm-svn: 49261 
							
						 
						
							2008-04-06 04:47:34 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								157dd0811e 
								
							 
						 
						
							
							
								
								fix a number of const qualification bugs.  
							
							 
							
							... 
							
							
							
							llvm-svn: 49257 
							
						 
						
							2008-04-06 04:11:27 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								c5ffed4a66 
								
							 
						 
						
							
							
								
								Introduce ContextDecl, patch by Argiris Kirtzidis!  
							
							 
							
							... 
							
							
							
							-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 
							
						 
						
							2008-04-04 06:12:32 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								ed0e16404c 
								
							 
						 
						
							
							
								
								clean up property memory allocation to move it into the ast classes  
							
							 
							
							... 
							
							
							
							like the rest of the classes.
llvm-svn: 48434 
							
						 
						
							2008-03-17 01:19:02 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								41eec3d097 
								
							 
						 
						
							
							
								
								make property addition work list all other "add" methods.  Do  
							
							 
							
							... 
							
							
							
							the allocation in the class, not in sema.
llvm-svn: 48433 
							
						 
						
							2008-03-16 21:23:50 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								219b3e9c6c 
								
							 
						 
						
							
							
								
								add the last two Create methods for decls, woo!  
							
							 
							
							... 
							
							
							
							llvm-svn: 48432 
							
						 
						
							2008-03-16 21:17:37 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								36ac1cae1f 
								
							 
						 
						
							
							
								
								add two more Create methods.  
							
							 
							
							... 
							
							
							
							llvm-svn: 48428 
							
						 
						
							2008-03-16 20:53:07 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								d77aff8232 
								
							 
						 
						
							
							
								
								simplify the way ObjCCategoryDecl's get their referenced protocols list  
							
							 
							
							... 
							
							
							
							specified.  Previously, the ctor would allocate memory for the list and then
it would get filled in later.  Move the allocation+filling in to be more 
consistent with other stuff, e.g. the addMethods method.
llvm-svn: 48427 
							
						 
						
							2008-03-16 20:47:45 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								1dd77af9ce 
								
							 
						 
						
							
							
								
								Add create methods for ObjCCategoryDecl, ObjCForwardProtocolDecl, ObjCClassDecl.  
							
							 
							
							... 
							
							
							
							llvm-svn: 48426 
							
						 
						
							2008-03-16 20:34:23 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								acc04a9261 
								
							 
						 
						
							
							
								
								minor cleanups, make getNumInstanceMethods always return unsigned.  
							
							 
							
							... 
							
							
							
							llvm-svn: 48423 
							
						 
						
							2008-03-16 20:19:15 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								f87ca0a7d1 
								
							 
						 
						
							
							
								
								Give ObjCProtocolDecl a Create method.  
							
							 
							
							... 
							
							
							
							llvm-svn: 48410 
							
						 
						
							2008-03-16 01:23:04 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								96c501ef7e 
								
							 
						 
						
							
							
								
								Add create methods for ObjCIvarDecl and ObjCInterfaceDecl  
							
							 
							
							... 
							
							
							
							llvm-svn: 48408 
							
						 
						
							2008-03-16 01:15:50 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								c557947488 
								
							 
						 
						
							
							
								
								remove some dead arguments to ObjCMethodDecl.  
							
							 
							
							... 
							
							
							
							llvm-svn: 48406 
							
						 
						
							2008-03-16 00:58:16 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								8d8829e225 
								
							 
						 
						
							
							
								
								Give ObjCMethodDecl a Create method.  
							
							 
							
							... 
							
							
							
							llvm-svn: 48405 
							
						 
						
							2008-03-16 00:49:28 +00:00  
						
					 
				
					
						
							
							
								 
								Chris Lattner
							
						 
						
							 
							
							
							
							
								
							
							
								893751970a 
								
							 
						 
						
							
							
								
								Split objc decl implementation out into DeclObjC.cpp  
							
							 
							
							... 
							
							
							
							llvm-svn: 48404 
							
						 
						
							2008-03-16 00:19:01 +00:00