- Jul 26, 2008
-
-
Chris Lattner authored
of doing it directly. This is required for PR2189. llvm-svn: 54102
-
Chris Lattner authored
llvm-svn: 54101
-
Chris Lattner authored
improve 'expression unused' diagnostics for stmtexprs. llvm-svn: 54098
-
Chris Lattner authored
last client of the old ParseObjCProtocolReferences, so it also removes it. llvm-svn: 54094
-
Chris Lattner authored
llvm-svn: 54093
-
Chris Lattner authored
This temporarily duplicates ParseObjCProtocolReferences, but it will be removed in the future. llvm-svn: 54092
-
Chris Lattner authored
llvm-svn: 54091
-
Chris Lattner authored
llvm-svn: 54090
-
Chris Lattner authored
clients allocate the memory and it delete it. llvm-svn: 54087
-
Chris Lattner authored
First, fix canonical type handling of these, since protocol qualified id's are always canonical. Next, enhance SemaType to actually make these when used (instead of int) allowing them to actually be used when appropriate. Finally remove a bunch of logic relating to the mishandling of canonical types with protocol-qual id's. This fixes rdar://5986251 llvm-svn: 54083
-
Chris Lattner authored
as well as complex float. rdar://6097730 llvm-svn: 54080
-
-
Chris Lattner authored
llvm-svn: 54069
-
Chris Lattner authored
problem with &&/||. 2) use canonical types for comparison instead of raw types. 3) emit an ext-warn for a gnu extension. Also simplify the code to make it less nested. llvm-svn: 54068
-
Ted Kremenek authored
llvm-svn: 54067
-
- Jul 25, 2008
-
-
Chris Lattner authored
llvm-svn: 54066
-
Chris Lattner authored
is different than C99. This fixes the rest of rdar://6095180. llvm-svn: 54064
-
Chris Lattner authored
llvm-svn: 54063
-
Chris Lattner authored
it does not do unary promotions (like short->int). llvm-svn: 54058
-
-
Steve Naroff authored
(a) removes a bogus warning. (b) removes an undesirable usage of the ObjCMessageExpr constructor that takes an IdentifierInfo * (which I will abolish). llvm-svn: 54042
-
Chris Lattner authored
even if in a system header etc. rdar://6079937 llvm-svn: 54038
-
Steve Naroff authored
llvm-svn: 54032
-
Ted Kremenek authored
llvm-svn: 54008
-
Ted Kremenek authored
llvm-svn: 53998
-
- Jul 24, 2008
-
-
Steve Naroff authored
This fixes a critical rewriter bug (<rdar://problem/6096760> clang ObjC rewriter: 'self' not expected value in class method called with 'super'). Also added a couple FIXME's since I'm not happy with my fix to Sema. It would be nicer if the super handling for class/instance messages was the same (based on PreDefinedExpr). llvm-svn: 53994
-
- Jul 23, 2008
-
-
Ted Kremenek authored
When constructing an ObjCIvarDecl object in Sema, provide its visibility up front instead of setting it afterwards. This change also fixes a subtle bug where the access control of an ivar would be initialized to garbage if we didn't have an explicit visibility specifier (e.g., @private). llvm-svn: 53955
-
-
- Jul 22, 2008
-
-
Ted Kremenek authored
llvm-svn: 53914
-
Daniel Dunbar authored
This closes <rdar://problem/6080720>, support for __builtin_constant_p has been filed separately. llvm-svn: 53885
-
Chris Lattner authored
of a specific smallvector size. Fix protocol lists to pass down proper location info, so we get diagnostics like this: t.m:3:35: error: cannot find protocol definition for 'NSCopying', referenced by 'NSWhatever' @interface NSWhatever : NSObject <NSCopying> ^ instead of this: t.m:3:44: error: cannot find protocol definition for 'NSCopying', referenced by 'NSWhatever' @interface NSWhatever : NSObject <NSCopying> ^ Add a new IdentifierLocPair typedef which is just a pair<IdentifierInfo*, SourceLocation> llvm-svn: 53883
-
Ted Kremenek authored
Fix indexing bug. llvm-svn: 53882
-
- Jul 21, 2008
-
-
Ted Kremenek authored
llvm-svn: 53881
-
Chris Lattner authored
simplifying code along the way and fixing a problem and memory leak or two. llvm-svn: 53876
-
Chris Lattner authored
llvm-svn: 53864
-
Chris Lattner authored
References to forward definitions should be warnings. llvm-svn: 53863
-
Chris Lattner authored
various objc lists over to it. First up, the protocol list on ObjCInterfaceDecl. llvm-svn: 53856
-
Chris Lattner authored
be consistent with ObjCInterfaceDecl. llvm-svn: 53852
-
Argyrios Kyrtzidis authored
llvm-svn: 53849
-
Chris Lattner authored
the standard "set these as the list of protocols" interface instead of a strange "set this as the size and then set each one to the value" interface. The problem with the later is that it a) is completely different from everything else, b) is awkward, and c) doesn't handle the case when a referenced protocol is invalid: it set it to null. This meant that all clients downstream would have to handle null protocols in the protocol list, and empirically they didn't. Fix this by not setting invalid protocols in the referenced protocol list, fixing the crash on test/Sema/objc-interface-1.m While I'm at it, clean up some locations so that we produce: t.m:1:25: error: cannot find interface declaration for 'NSObject', superclass of 'NSWhatever' @interface NSWhatever : NSObject <NSCopying> ~~~~~~~~~~~~~~~~~~~~~ ^ instead of: t.m:1:1: error: cannot find interface declaration for 'NSObject', superclass of 'NSWhatever' @interface NSWhatever : NSObject <NSCopying> ^ llvm-svn: 53846
-