summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC
Commit message (Collapse)AuthorAgeFilesLines
* Fix crasher caused by setting a bit in a possibly empty bitvector whileTed Kremenek2010-02-271-0/+5
| | | | | | doing printf format string checking. This is a recent regression. llvm-svn: 97318
* Forgot to include nested protocols in collection, resulting inFariborz Jahanian2010-02-251-0/+30
| | | | | | bogus warning. Fixes radar 7682116. llvm-svn: 97157
* Allow __attribute__((unused)) to be applied to ObjC ivars.Ted Kremenek2010-02-251-10/+11
| | | | llvm-svn: 97103
* More Sema check for ivars in class continuation.Fariborz Jahanian2010-02-231-0/+32
| | | | llvm-svn: 97002
* Fix another crash on invalid code. In this case, handle ObjC categories ↵Ted Kremenek2010-02-231-0/+4
| | | | | | | | (with no names) that refer to an undefined class. llvm-svn: 96976
* A test case for property synthesis using ivar in class extensions.Fariborz Jahanian2010-02-231-0/+36
| | | | llvm-svn: 96968
* More support for ivars in class extension.Fariborz Jahanian2010-02-231-0/+42
| | | | llvm-svn: 96850
* Clang really intends to reject attribute 'warn_unused_result' on Objective-C ↵Ted Kremenek2010-02-211-0/+8
| | | | | | | | | methods, but instead it crashes on them. We might extend this attribute to work on methods, but for now fix the crasher. Addresses <rdar://problem/7670939>. llvm-svn: 96723
* Start supporting declaration of ivars in @implementationFariborz Jahanian2010-02-191-0/+22
| | | | | | blocks. WIP. llvm-svn: 96696
* Issue extended diagnostic when property dot-syntax is used and Fariborz Jahanian2010-02-191-2/+2
| | | | | | there is a setter but no getter (part of radar 7664555). llvm-svn: 96687
* Allow for declaration and use of ivars in a stand-aloneFariborz Jahanian2010-02-171-0/+12
| | | | | | implementation (toward radar 7547942). llvm-svn: 96479
* Class continuation now has its own property ast forFariborz Jahanian2010-02-151-0/+13
| | | | | | | | those declared in it. This is to allow duplicate property diagnostics for properties declared in class extensions multiple times (radar 7629420) and for future use. llvm-svn: 96276
* Patch to fix a warning which exposed a bug in buildingFariborz Jahanian2010-02-121-0/+55
| | | | | | | a qualified objective-c pointer type. Fixes radar 7638810. (Also removes a FIXME). llvm-svn: 96003
* Diagnose when user provided getter is being used as lvalueFariborz Jahanian2010-02-111-0/+14
| | | | | | using property dot-syntax. Fixes radar 7628953. llvm-svn: 95838
* Reverse a partial fix patch for radar 7214820. It broke some code andFariborz Jahanian2010-02-102-19/+2
| | | | | | I don't have time to refix it for now. llvm-svn: 95733
* Finish implementing property synthesis by default.Fariborz Jahanian2010-02-091-0/+81
| | | | | | (radar 7381956). llvm-svn: 95695
* Merge block/function pointer types with objc's __weakFariborz Jahanian2010-02-082-2/+19
| | | | | | | | | attribute properly and avoid bogus warning. This is an objective-c fix only. objective-c++ follows different code pass and requires separate fix (which will come at a later time). Fixes radar 7214820. llvm-svn: 95571
* Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'.Ted Kremenek2010-02-051-1/+1
| | | | llvm-svn: 95348
* Fix test.Anders Carlsson2010-02-021-1/+1
| | | | llvm-svn: 95108
* Add test case for <rdar://problem/7068334> (which was fixed by r94864).Ted Kremenek2010-01-301-0/+9
| | | | llvm-svn: 94865
* Switch Sema over to using the new implementation of format stringTed Kremenek2010-01-291-1/+1
| | | | | | | | | checking. It passes all existing tests, and the diagnostics have been refined to provide better range information (we now highlight individual format specifiers) and more precise wording in the diagnostics. llvm-svn: 94837
* Insulate these from changes to the default for -Wunreachable-code.Mike Stump2010-01-232-2/+2
| | | | llvm-svn: 94326
* outside a method, 'super' should resolve in a normal name look upFariborz Jahanian2010-01-221-0/+7
| | | | | | to mimic gcc's behavior. Fixes radar 7400691. llvm-svn: 94246
* Settled rule on warning on unimplemented property inFariborz Jahanian2010-01-203-4/+37
| | | | | | | | category implementation when some implementations are missing in the primary class implementation. (fixes radar 6505200). llvm-svn: 94014
* Patch to implement required warnings for unimplementedFariborz Jahanian2010-01-201-0/+20
| | | | | | properties imported frfom protocol. Fixes radar 7544809. llvm-svn: 93965
* objective-c test case for __attribute__((unused)) on method arguments.Fariborz Jahanian2010-01-191-0/+15
| | | | llvm-svn: 93887
* Issue diagnostics (instead of crashing in code gen) when usingFariborz Jahanian2010-01-191-1/+14
| | | | | | | property dot-syntax notation to use setter/getters in objective-c. Fixes radar 7553050. llvm-svn: 93883
* When in objective-c methods, do the built-in name lookup afterFariborz Jahanian2010-01-121-0/+40
| | | | | | ivar name lookup. Fixes pr5986. llvm-svn: 93271
* add a bunch of missing prototypes to testsChris Lattner2010-01-094-0/+8
| | | | llvm-svn: 93072
* Whenever we emit a typo-correction diagnostic, also emit a noteDouglas Gregor2010-01-071-1/+1
| | | | | | | pointing to the declaration that we found that has that name (if it is unique). llvm-svn: 92877
* When suggesting a typo correction for an @implementation without aDouglas Gregor2010-01-061-1/+2
| | | | | | | | | | corresponding @interface, provide a note showing which interface we're referring to. This note has the fix-it hint on it. Also, don't automatically apply fix-it hints for notes. They're meant to express fix-its that would change semantics. llvm-svn: 92870
* Fix a bug when property is redeclared in multipleFariborz Jahanian2010-01-061-0/+24
| | | | | | | continuation classes and its original declaration is imported from a protocol. This fixes radar 7509234. llvm-svn: 92856
* Do not diagnose method disguised as property setterFariborz Jahanian2010-01-061-0/+12
| | | | | | for a 'readonly' property. Fixes radar 7427072. llvm-svn: 92808
* When declaring an Objective-C implementation without a correspondingDouglas Gregor2010-01-041-0/+2
| | | | | | | | | | | | | | | | | | | | | | interface, suggest correction of typos. For example, given: @interface NSString @end @implementation NSstring @end we'll warn with: t.m:4:19: warning: cannot find interface declaration for 'NSstring'; did you mean 'NSString'? @implementation NSstring ^ However, since this is just a warning, we don't provide a fix-it hint. Good idea, Ted! llvm-svn: 92488
* Implement typo correction for a variety of Objective-C-specificDouglas Gregor2010-01-032-3/+3
| | | | | | | | | | | | | | constructs: - Instance variable lookup ("foo->ivar" and, in instance methods, "ivar") - Property name lookup ("foo.prop") - Superclasses - Various places where a class name is required - Protocol names (e.g., id<proto>) This seems to cover many of the common places where typos could occur. llvm-svn: 92449
* clang -cc1: Rename -mcpu to -target-cpu to match other target options and ↵Daniel Dunbar2009-12-181-1/+1
| | | | | | not alias driver/backend option. llvm-svn: 91671
* Diagnose duplicate declaration of a property. FixesFariborz Jahanian2009-12-171-0/+9
| | | | | | PR5809 llvm-svn: 91575
* Add abort() as a builtin. This has two effects: one, we warn for incorrect Eli Friedman2009-12-163-0/+4
| | | | | | | | declarations of abort(), and two, we mark it noreturn. Missing the latter shows up in one of the "embarassing" tests (from the thread on llvmdev "detailed comparison of generated code size for LLVM and other compilers"). llvm-svn: 91515
* Diagnose attempting to assign to a sub-structure of an ivarFariborz Jahanian2009-12-151-0/+20
| | | | | | using objective-c property. (fixes radar 7449707) llvm-svn: 91474
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-15207-209/+209
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Change tests to use clang -cc1...Fariborz Jahanian2009-12-14207-209/+209
| | | | llvm-svn: 91297
* Patch to warn when discarding objective-c pointer type qualifiersFariborz Jahanian2009-12-081-0/+20
| | | | | | Still some refactoring to do. llvm-svn: 90830
* Allow accessing 'isa' via '->' operator. Fariborz Jahanian2009-12-071-3/+0
| | | | | | (fixes radar 7447251). llvm-svn: 90795
* Patch to allow restrict applied to id/Class types.Fariborz Jahanian2009-12-071-0/+9
| | | | | | (fixes radar 7442244). llvm-svn: 90773
* Move RequireCompleteType requirement for fields early into ActOnField so thatEli Friedman2009-12-071-1/+2
| | | | | | subsequent code which depends on a complete type does the right thing. llvm-svn: 90727
* "Incremental" progress on using expressions, by which I mean totally rippingJohn McCall2009-11-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | into pretty much everything about overload resolution in order to wean BuildDeclarationNameExpr off LookupResult::getAsSingleDecl(). Replace UnresolvedFunctionNameExpr with UnresolvedLookupExpr, which generalizes the idea of a non-member lookup that we haven't totally resolved yet, whether by overloading, argument-dependent lookup, or (eventually) the presence of a function template in the lookup results. Incidentally fixes a problem with argument-dependent lookup where we were still performing ADL even when the lookup results contained something from a block scope. Incidentally improves a diagnostic when using an ObjC ivar from a class method. This just fell out from rewriting BuildDeclarationNameExpr's interaction with lookup, and I'm too apathetic to break it out. The only remaining uses of OverloadedFunctionDecl that I know of are in TemplateName and MemberExpr. llvm-svn: 89544
* Pass '-mcpu' 'FOO' instead of '-mcpu=FOO'.Daniel Dunbar2009-11-201-1/+1
| | | | llvm-svn: 89498
* Don't issue spurious diagnostic with Obj-C fast enumeration.Fariborz Jahanian2009-11-191-1/+1
| | | | | | (radar 7409165). llvm-svn: 89400
* Do not enter forward class 'Protocol' in decl context.Fariborz Jahanian2009-11-181-0/+6
| | | | | | Will do it later. Fixes pr5552. llvm-svn: 89269
* Don't warn if objc method param types in declaration andFariborz Jahanian2009-11-181-0/+16
| | | | | | | | implementation mismatch in their qualifiers only. This will match similar behavior in c/c++ and fixes radar 7211653. llvm-svn: 89220
OpenPOWER on IntegriCloud