- Mar 05, 2009
-
-
rdar://problem/6301205Steve Naroff authored
Tweak Sema::ActOnMemberReferenceExpr() and Sema::ActOnDeclarationNameExpr() to handle "super." notation for Class methods. llvm-svn: 66185
-
rdar://problem/5982579Steve Naroff authored
Tweak diag for <rdar://problem/5982579> [clang on xcode] (using arch=x86_64): synthesized property 'sdkPath' must either be named the same as a compatible ivar or must explicitly name an ivar. llvm-svn: 66162
-
-
Chris Lattner authored
like: Stack dump: 0. t.c:5:10: in compound statement ('{}') 1. t.c:3:12: in compound statement ('{}') 2. t.c:3:12: parsing function body 'foo' 3. clang t.c Abort llvm-svn: 66118
-
Fariborz Jahanian authored
llvm-svn: 66099
-
- Mar 04, 2009
-
-
Fariborz Jahanian authored
c-style functions declared inside objc @implementations. llvm-svn: 66087
-
rdar://problem/6645157Steve Naroff authored
Partial fix for <rdar://problem/6645157> [clang on Xcode; regression]: error: instance variable 'someField' is private. A recent regression caused by http://llvm.org/viewvc/llvm-project?rev=65912&view=rev. This commit isn't fully baked. Nevertheless, it should cause Xcode to compile again. Will speak with Fariborz offline. llvm-svn: 66045
-
Fariborz Jahanian authored
llvm-svn: 66041
-
Fariborz Jahanian authored
If all else failed, find the message in class's root's list of instacne methods! llvm-svn: 66040
-
rdar://problem/6497631Steve Naroff authored
Finish up some fixes related to <rdar://problem/6497631> Message lookup is sometimes different than gcc's. - Disallow casting 'super'. GCC allows this, however it doesn't make sense (super isn't an expression and the cast won't alter lookup/dispatch). - Tighten up lookup when messaging 'self'. llvm-svn: 66033
-
Eli Friedman authored
llvm-svn: 66027
-
Chris Lattner authored
decls. This reduces the number of calls to malloc on cocoa.h with pth and -disable-free from 15958 to 12444 times (down ~3500). llvm-svn: 66023
-
Chris Lattner authored
this, make DeclBase::Destroy destroy attributes instead of the DeclBase dtor. llvm-svn: 66020
-
Chris Lattner authored
llvm-svn: 66016
-
Chris Lattner authored
multiple sequential case statements instead of doing it with recursion. This fixes a problem where we run out of stack space parsing 100K directly nested cases. There are a couple other problems that prevent this from being useful in practice (right now the example only parses correctly with -disable-free and doesn't work with -emit-llvm), but this is a start. I'm not including a testcase because it is large and uninteresting for regtesting. Sebastian, I would appreciate it if you could scrutinize the smart pointer gymnastics I do. llvm-svn: 66011
-
Steve Naroff authored
llvm-svn: 65978
-
- Mar 03, 2009
-
-
Fariborz Jahanian authored
is searched for in the global pool. It already uncovered a clang bug in message selection. llvm-svn: 65974
-
rdar://problem/5982579Steve Naroff authored
Fix <rdar://problem/5982579> [clang on xcode] (using arch=x86_64): synthesized property 'sdkPath' must either be named the same as a compatible ivar or must explicitly name an ivar. llvm-svn: 65973
-
-
-
rdar://problem/6640991Steve Naroff authored
Also necessary to fix: <rdar://problem/6632061> [sema] non object types should not be allowed in @catch statements <rdar://problem/6252237> [sema] qualified id should be disallowed in @catch statements llvm-svn: 65964
-
rdar://problem/6497242Steve Naroff authored
Change Sema::DiagnosePropertyMismatch() to check for type compatibility (rather than type equivalence, which is too strict). llvm-svn: 65949
-
-
Eli Friedman authored
while I was at it. There are still a lot of diagnostics missing from this code, and it isn't completely correct for anything other than x86, but it should work correctly on x86 for valid cases. llvm-svn: 65935
-
Douglas Gregor authored
response to attempts to diagnose an "incomplete" type. This will force us to use DiagnoseIncompleteType more regularly (rather than looking at isIncompleteType), but that's also a good thing. Implicit instantiation is still very simplistic, and will create a new definition for the class template specialization (as it should) but it only actually instantiates the base classes and attaches those. Actually instantiating class members will follow. Also, instantiate the types of non-type template parameters before checking them, allowing, e.g., template<typename T, T Value> struct Constant; to work properly. llvm-svn: 65924
-
Fariborz Jahanian authored
llvm-svn: 65912
-
-
- Mar 02, 2009
-
-
Fariborz Jahanian authored
local or global variables in instance/class methods. llvm-svn: 65879
-
Fariborz Jahanian authored
llvm-svn: 65855
-
Fariborz Jahanian authored
in its extension. llvm-svn: 65854
-
Douglas Gregor authored
need them to evaluate redeclarations or call a function that hasn't already been declared. We now keep a DenseMap of these locally-scoped declarations so that they are not visible but can be quickly found, e.g., when we're looking for previous declarations or before we go ahead and implicitly declare a function that's being called. Fixes PR3672. llvm-svn: 65792
-
- Mar 01, 2009
-
-
rdar://problem/6248764Steve Naroff authored
Downgrade an error to a warning (for GCC compatibility). llvm-svn: 65779
-
Douglas Gregor authored
llvm-svn: 65777
-
Daniel Dunbar authored
llvm-svn: 65759
-
Chris Lattner authored
"This patch uses the new ObjCImplDecl class to merge Sema::ImplMethodsVsClassMethods and Sema::ImplCategoryMethodsVsIntfMethods methods. And now, when clang check a class implementation to find unimplemented methods, it also checks all methods from the class extensions (unnamed categories). There is also a test case to check this warning. This patch contains also a minor update for ObjCImplDecl . getNameAsCString and getNameAsString now returns an empty string instead of crashing for unnamed categories." Patch by Jean-Daniel Dupas! llvm-svn: 65744
-
Anders Carlsson authored
llvm-svn: 65737
-
- Feb 28, 2009
-
-
Anders Carlsson authored
Fix invalid VLAs/VMs in Sema::ActOnVariableDeclarator, so that the variable will have the right type by the time the initializer is checked. This ensures that code like int a[(int)(1.0 / 1.0) = { 1 } will work. Eli, please review. llvm-svn: 65725
-
Steve Naroff authored
llvm-svn: 65718
-
Chris Lattner authored
notice because it was a negative test with a fix suggested by Jean-Daniel Dupas. Convert the test from a negative to a positive test to catch stuff like this. llvm-svn: 65708
-
Steve Naroff authored
llvm-svn: 65695
-