- Feb 26, 2009
-
-
http://llvm.org/bugs/show_bug.cgi?id=3544Steve Naroff authored
The code for looking up local/private method in Sema::ActOnInstanceMessage() was not handling categories properly. Sema::ActOnClassMessage() didn't have this bug. Created a helper with the correct logic and changed both methods to use it. llvm-svn: 65532
-
Steve Naroff authored
Also changed ObjCInterfaceDecl::lookupClassMethod() to look through a categories protocols. Test/patch submitted by Jean-Daniel Dupas (thanks!). llvm-svn: 65526
-
- Feb 25, 2009
-
-
Anders Carlsson authored
llvm-svn: 65461
-
- Feb 23, 2009
-
-
rdar://6611778Chris Lattner authored
assertion when the ivars and method list was reset into the existing interface. To fix this, mark decls as invalid when they are redefined, and don't insert ivars/methods into invalid decls. llvm-svn: 65340
-
Steve Naroff authored
- Generate error for protocol qualifiers on non-ObjC types. llvm-svn: 65333
-
http://llvm.org/viewvc/llvm-project?view=rev&revision=65244Steve Naroff authored
Remove support for "Class<P>". Will be making this an error. llvm-svn: 65332
-
- Feb 22, 2009
-
-
Steve Naroff authored
Contains the following (related to problems found while investigting <rdar://problem/6497631> Message lookup is sometimes different than gcc's). - Implement instance/class overloading in ObjCContainerDecl (removing a FIXME). This involved hacking NamedDecl::declarationReplaces(), which took awhile to figure out (didn't realize replace was the default). - Changed Sema::ActOnInstanceMessage() to remove redundant warnings when dealing with protocols. For now, I've omitted the "protocol" term in the diagnostic. It simplifies the code flow and wan't always 100% accurate (e.g. "Foo<Prot>" looks in the class interface, not just the protocol). - Changed several test cases to jive with the above changes. llvm-svn: 65292
-
- Feb 21, 2009
-
-
Steve Naroff authored
Found while researching <rdar://problem/6497631> Message lookup is sometimes different than gcc's. Will never be seen in user code. Needed to pass dejagnu testsuite. llvm-svn: 65244
-
Steve Naroff authored
llvm-svn: 65241
-
Fariborz Jahanian authored
variable (objc2 gc specific). llvm-svn: 65240
-
Steve Naroff authored
Add test case to record a couple inconsistencies with GCC (found in <rdar://problem/6561076> [clang on Xcode] warning: cannot find protocol definition for 'OzzyP'). Removing the "cannot find protocol" warning is trivial if necessary (but I don't think it's the right thing to do). llvm-svn: 65232
-
Steve Naroff authored
This fixes <rdar://problem/6497650> More type mismatches issues with clang. Move two key ObjC typechecks from Sema::CheckPointerTypesForAssignment() to ASTContext::mergeTypes(). This allows us to take advantage of the recursion in ASTContext::mergeTypes(), removing some bogus warnings. This test case I've added includes an example where we still warn (and GCC doesn't). Need to talk with folks and decide what to do. At this point, the major bogosities should be fixed. llvm-svn: 65231
-
- Feb 20, 2009
-
-
-
-
Eli Friedman authored
llvm-svn: 65106
-
- Feb 18, 2009
-
-
Douglas Gregor authored
(as GCC does), except when we've performed overload resolution and found an unavailable function: in this case, we actually error. Merge the checking of unavailable functions with the checking for deprecated functions. This unifies a bit of code, and makes sure that we're checking for unavailable functions in the right places. Also, this check can cause an error. We may, eventually, want an option to make "unavailable" warnings into errors. Implement much of the logic needed for C++0x deleted functions, which are effectively the same as "unavailable" functions (but always cause an error when referenced). However, we don't have the syntax to specify deleted functions yet :) llvm-svn: 64955
-
Chris Lattner authored
First step, handle diagnostics in StringLiteral's that are due to token pasting. For example, we now handle: id str2 = @"foo" "bar" @"baz" " b\0larg"; // expected-warning {{literal contains NUL character}} Correctly: test/SemaObjC/exprs.m:17:15: warning: CFString literal contains NUL character " b\0larg"; // expected-warning {{literal contains NUL character}} ~~~^~~~~~~ There are several other related issues still to be done. llvm-svn: 64924
-
Chris Lattner authored
llvm-svn: 64886
-
rdar://6597252Chris Lattner authored
compatible, even if they are weird implicit objc pointer types like Class. llvm-svn: 64885
-
- Feb 16, 2009
-
-
Chris Lattner authored
llvm-svn: 64671
-
Chris Lattner authored
llvm-svn: 64670
-
Chris Lattner authored
whose declaration was declared as deprecated. llvm-svn: 64658
-
Chris Lattner authored
property is deprecated, not the getter/setter if the attribute is on the property. llvm-svn: 64644
-
Douglas Gregor authored
- If a declaration is an invalid redeclaration of an existing name, complain about the invalid redeclaration then avoid adding it to the AST (we can still parse the definition or initializer, if any). - If the declaration is invalid but there is no prior declaration with that name, introduce the invalid declaration into the AST (for later error recovery). - If the declaration is an invalid redeclaration of a builtin that starts with __builtin_, we produce an error and drop the redeclaration. If it is an invalid redeclaration of a library builtin (e.g., malloc, printf), warn (don't error!) and drop the redeclaration. If a user attempts to define a builtin, produce an error and (if it's a library builtin like malloc) suggest -ffreestanding. This addresses <rdar://problem/6097585> and PR2892. However, PR3588 is still going to cause some problems when builtins are redeclared without a prototype. llvm-svn: 64639
-
Chris Lattner authored
llvm-svn: 64637
-
Chris Lattner authored
hosts with a different size_t type. llvm-svn: 64636
-
Chris Lattner authored
llvm-svn: 64635
-
- Feb 14, 2009
-
-
Anders Carlsson authored
llvm-svn: 64562
-
Chris Lattner authored
We don't have "zero cost" exceptions for ObjC yet, so there is no codegen support required. llvm-svn: 64546
-
Chris Lattner authored
llvm-svn: 64545
-
- Feb 12, 2009
-
-
-
Steve Naroff authored
Turn warning into error. Minor incompatibility with GCC (for scalar types, GCC only produces a warning). llvm-svn: 64375
-
- Feb 11, 2009
-
-
Steve Naroff authored
llvm-svn: 64330
-
rdar://problem/6505139Steve Naroff authored
Fix <rdar://problem/6505139> [clang on growl]: need to allow unnamed selectors as the first argument llvm-svn: 64320
-
-
rdar://problem/6206858Steve Naroff authored
Added a FIXME to handle 'rethrow' check. llvm-svn: 64308
-
- Feb 09, 2009
-
-
Douglas Gregor authored
than a Decl, which gives us some more flexibility to express the results with the type system. There are no clients using this flexibility yet, but it's meant to be able to describe qualified names as written in the source (e.g., "foo::type") or template-ids that name a class template specialization (e.g., "std::vector<INT>"). DeclSpec's TST_typedef has become TST_typename, to reflect its use to describe types found by name (that may or may not be typedefs). The type representation of a DeclSpec with TST_typename is an opaque QualType pointer. All users of TST_typedef, both direct and indirect, have been updated for these changes. llvm-svn: 64141
-
- Feb 07, 2009
-
-
Sebastian Redl authored
This uncovers some bugs, so several test cases now fail. llvm-svn: 64025
-
- Feb 06, 2009
-
-
Ted Kremenek authored
Add sub-testcase where we process Cocoa.h using --disable-free (i.e., test the usage of the BumpPtrAllocator in ASTContext). llvm-svn: 63957
-
- Feb 04, 2009
-
-
rdar://problem/6552648Steve Naroff authored
Fix <rdar://problem/6552648> error: redefinition of 'XCElementAnchorDelegate' as different kind of symbol. At first glance, this looked like a recent regression (possibly created by http://llvm.org/viewvc/llvm-project?view=rev&revision=63354, which was the only recent change to this section of Sema::ActOnStartClassInterface()). After more investigation, it looks like an edge case bug that we didn't cover in our tests. llvm-svn: 63738
-