- Oct 29, 2011
-
-
Fariborz Jahanian authored
ownership qualifier cast which won't work. // rdar://10244607 llvm-svn: 143258
-
- Oct 28, 2011
-
-
Fariborz Jahanian authored
an rvalue retainable object type with life-time qualifier has no effect and wil be diagnosed as error. // rdar://10244607 llvm-svn: 143219
-
- Oct 25, 2011
-
-
John McCall authored
GCC compiler workaround. llvm-svn: 142931
-
NAKAMURA Takumi authored
r142914: "Introduce a placeholder type for "pseudo object"" r142915: "Pull the pseudo-object stuff into its own file." llvm-svn: 142921
-
John McCall authored
expressions: expressions which refer to a logical rather than a physical l-value, where the logical object is actually accessed via custom getter/setter code. A subsequent patch will generalize the AST for these so that arbitrary "implementing" sub-expressions can be provided. Right now the only client is ObjC properties, but this should be generalizable to similar language features, e.g. Managed C++'s __property methods. llvm-svn: 142914
-
- Oct 17, 2011
-
-
John McCall authored
only a setter. llvm-svn: 142236
-
John McCall authored
passing/receiving CF objects at +0 to/from Objective-C methods or audited C functions. llvm-svn: 142219
-
- Oct 15, 2011
-
-
Fariborz Jahanian authored
// rdar://10268422 llvm-svn: 142078
-
- Oct 03, 2011
-
-
Argyrios Kyrtzidis authored
llvm-svn: 140986
-
Argyrios Kyrtzidis authored
They are not kept in the AST yet. llvm-svn: 140982
-
- Oct 01, 2011
-
-
John McCall authored
calls, or calls to audited functions without an explicit return attribute, to be casted without a bridge cast. Tie this mechanism in with the existing exceptions to the cast restrictions. State those restrictions more correctly and generalize. llvm-svn: 140912
-
- Sep 27, 2011
-
-
Douglas Gregor authored
system change in <rdar://problem/10109725> that allows conversion from 'self' in class methods to the root of the class's hierarchy. This conversion rule is a hack that has non-trivial repurcussions (particularly with overload resolution). llvm-svn: 140605
-
- Sep 17, 2011
-
-
Fariborz Jahanian authored
class of this method. // rdar://10109725 llvm-svn: 139989
-
- Sep 10, 2011
-
-
John McCall authored
llvm-svn: 139466
-
- Sep 09, 2011
-
-
Douglas Gregor authored
llvm-svn: 139394
-
John McCall authored
converting to an arbitrary Objective-C pointer type is. Without significantly re-implementing anything, change the API to reflect this, and as a minor optimization, strip the pointer conversion off before potentially building it. Mostly, this removes a really bizarre-looking bit of code from BuildInstanceMessage. llvm-svn: 139354
-
John McCall authored
than conversions of C pointers to ObjC pointers. In order to ensure that we've caught every case, add asserts to CastExpr that strictly determine which cast kind is used for which kind of bit cast. llvm-svn: 139352
-
- Sep 08, 2011
-
-
Douglas Gregor authored
'id' that can be used (only!) via a contextual keyword as the result type of an Objective-C message send. 'instancetype' then gives the method a related result type, which we have already been inferring for a variety of methods (new, alloc, init, self, retain). Addresses <rdar://problem/9267640>. llvm-svn: 139275
-
- Aug 31, 2011
-
-
John McCall authored
message send to an unknown method. rdar://problem/9416370, redux. llvm-svn: 138893
-
- Aug 29, 2011
-
-
Nico Weber authored
This matches gcc's logic. Second half of PR10661. llvm-svn: 138730
-
- Aug 26, 2011
-
-
John McCall authored
bridged cast. Noticed by AST inspection by Ted Kremenek! llvm-svn: 138616
-
- Aug 22, 2011
-
-
Nico Weber authored
This matches gcc's logic. Half of PR10661. llvm-svn: 138240
-
- Jul 27, 2011
-
-
Douglas Gregor authored
llvm-svn: 136210
-
- Jul 23, 2011
-
-
Chris Lattner authored
them into the clang namespace. llvm-svn: 135852
-
- Jul 13, 2011
-
-
Fariborz Jahanian authored
used in @selector expression because, well, their implementation is optional. // rdar://9545564 llvm-svn: 135057
-
John McCall authored
__unknown_anytype, and rewrite such message sends correctly. I had to bite the bullet and actually add a debugger support mode for this one, which is a bit unfortunate, but there really isn't anything else I could imagine doing; this is clearly just debugger-specific behavior. llvm-svn: 135051
-
- Jul 08, 2011
-
-
Fariborz Jahanian authored
object to a __weak object/type. // rdar://9732636. One item is yet todo. llvm-svn: 134655
-
- Jul 07, 2011
-
-
John McCall authored
where we have an immediate need of a retained value. As an exception, don't do this when the call is made as the immediate operand of a __bridge retain. This is more in the way of a workaround than an actual guarantee, so it's acceptable to be brittle here. rdar://problem/9504800 llvm-svn: 134605
-
- Jul 06, 2011
-
-
Fariborz Jahanian authored
passed to it, and unknown selectors causing potential leak. // rdar://9659270 llvm-svn: 134449
-
- Jun 28, 2011
-
-
Douglas Gregor authored
vector<int> to std::vector<int> Patch by Kaelyn Uhrain, with minor tweaks + PCH support from me. Fixes PR5776/<rdar://problem/8652971>. Thanks Kaelyn! llvm-svn: 134007
-
Fariborz Jahanian authored
// rdar://7811841 llvm-svn: 133970
-
- Jun 22, 2011
-
-
Fariborz Jahanian authored
integral as it is not transferring ownership.. // rdar://9619861 llvm-svn: 133622
-
- Jun 21, 2011
-
-
Fariborz Jahanian authored
__builtin___CFStringMakeConstantString and CF typed function calls with explicit cf_returns_retained/cf_returns_not_retained attributes. // rdar://9544832 llvm-svn: 133535
-
Fariborz Jahanian authored
// rdar://9474349 llvm-svn: 133525
-
Jay Foad authored
use the deprecated forms of llvm::StringMap::GetOrCreateValue(). llvm-svn: 133515
-
- Jun 20, 2011
-
-
Fariborz Jahanian authored
message sent to an objc method (or property access) // rdar://9474349 llvm-svn: 133469
-
- Jun 17, 2011
-
-
John McCall authored
llvm-svn: 133246
-
Fariborz Jahanian authored
(even though it is incomplete type) because gcc says so. // rdar://9622422 llvm-svn: 133208
-
- Jun 16, 2011
-
-
John McCall authored
Language-design credit goes to a lot of people, but I particularly want to single out Blaine Garst and Patrick Beard for their contributions. Compiler implementation credit goes to Argyrios, Doug, Fariborz, and myself, in no particular order. llvm-svn: 133103
-
- Jun 11, 2011
-
-
Douglas Gregor authored
Related result types apply Cocoa conventions to the type of message sends and property accesses to Objective-C methods that are known to always return objects whose type is the same as the type of the receiving class (or a subclass thereof), such as +alloc and -init. This tightens up static type safety for Objective-C, so that we now diagnose mistakes like this: t.m:4:10: warning: incompatible pointer types initializing 'NSSet *' with an expression of type 'NSArray *' [-Wincompatible-pointer-types] NSSet *array = [[NSArray alloc] init]; ^ ~~~~~~~~~~~~~~~~~~~~~~ /System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:72:1: note: instance method 'init' is assumed to return an instance of its receiver type ('NSArray *') - (id)init; ^ It also means that we get decent type inference when writing code in Objective-C++0x: auto array = [[NSMutableArray alloc] initWithObjects:@"one", @"two",nil]; // ^ now infers NSMutableArray* rather than id llvm-svn: 132868
-