hanchenye-llvm-project/clang/test/SemaObjC
Fariborz Jahanian 629aed9327 Issue error if variables are defined inside an objc class,
category or protocol.

llvm-svn: 67450
2009-03-21 18:06:45 +00:00
..
DoubleMethod.m Make all the 'redefinition' diagnostics more consistent, and make the 2008-11-23 23:12:31 +00:00
access-property-getter.m When looking for property name (or getter method) in a 2009-03-19 18:15:34 +00:00
alias-test-1.m remove warn_previous_declaration 2008-11-23 23:20:13 +00:00
alias-test-2.m Make all the 'redefinition' diagnostics more consistent, and make the 2008-11-23 23:12:31 +00:00
argument-checking.m
at-defs.m
attr-cleanup.m Use CheckAssignmentConstraints for checking the cleanup attr function. Fixes PR3656. 2009-02-25 17:19:08 +00:00
attr-deprecated.m warn about interfaces that inherit from deprecated classes. 2009-02-16 21:33:09 +00:00
attr-objc-exception.m add parser and type checking support for attribute((objc_exception)). 2009-02-14 08:09:34 +00:00
attr-objc-gc.m rename test 2009-02-14 08:08:05 +00:00
bad-receiver-1.m Improve the "bad receiver" warning for ObjC message sends to be less confusing. 2009-03-11 03:47:47 +00:00
block-ivar.m instead of forcing blocks on by default, make them default to off, but let 2008-12-04 23:20:07 +00:00
blocks.m Add some block-pointer conversions in C++ 2008-12-23 00:53:59 +00:00
call-super-2.m Fix a corner case of message lookup looking for class methods. 2009-03-04 17:50:39 +00:00
catch-stmt.m Change a warning to an error... 2009-03-03 23:13:51 +00:00
category-1.m Tweak duplicate category diagnostic to work like the duplicate protocol diagnostic. 2008-11-23 22:38:38 +00:00
category-method-lookup-2.m Fix http://llvm.org/bugs/show_bug.cgi?id=3544. 2009-02-26 15:55:06 +00:00
category-method-lookup.m Fix <rdar://problem/6252129> implementation of method in category doesn't effectively declare it for methods below. 2008-09-28 14:55:53 +00:00
check-dup-decl-methods-1.m Make all the 'redefinition' diagnostics more consistent, and make the 2008-11-23 23:12:31 +00:00
check-dup-objc-decls-1.m Make one expected-diag directive match exactly one actual diagnostic. 2009-02-07 19:52:04 +00:00
class-bitfield.m Fix <rdar://problem/6497608> clang does not catch ivar type mismatches in @implementation. 2009-03-03 14:49:36 +00:00
class-conforming-protocol-1.m Make all the 'redefinition' diagnostics more consistent, and make the 2008-11-23 23:12:31 +00:00
class-def-test-1.m Adopt a more principled approach to invalid declarations: 2009-02-16 17:45:42 +00:00
class-extension-dup-methods.m Check for duplicate declaration of method of a class 2009-03-02 19:05:07 +00:00
class-impl-1.m Make all the 'redefinition' diagnostics more consistent, and make the 2008-11-23 23:12:31 +00:00
class-method-lookup.m Fix a corner case of message lookup looking for class methods. 2009-03-04 17:50:39 +00:00
class-proto-1.m simplify some code. 2008-07-26 03:47:43 +00:00
cocoa.m Add sub-testcase where we process Cocoa.h using --disable-free (i.e., test the usage of the BumpPtrAllocator in ASTContext). 2009-02-06 19:36:35 +00:00
compare-qualified-id.m Fix <rdar://problem/6316324> [sema] spurious warning on comparison of qualified id. 2008-11-17 19:49:16 +00:00
compatible-protocol-qualified-types.m Downgrade incompatibilities with objc qualified types (e.g. id <P>) to warnings. 2008-10-14 22:18:38 +00:00
comptypes-1.m Fix <rdar://problem/6315646> clang on xcode: error: invalid operands to binary expression ('id<NSTableViewDelegate>' and 'XCExtendedArrayController *'). 2008-10-27 10:33:19 +00:00
comptypes-2.m
comptypes-3.m Downgrade incompatibilities with objc qualified types (e.g. id <P>) to warnings. 2008-10-14 22:18:38 +00:00
comptypes-4.m
comptypes-5.m Downgrade incompatibilities with objc qualified types (e.g. id <P>) to warnings. 2008-10-14 22:18:38 +00:00
comptypes-6.m
comptypes-7.m Sema::CheckCompareOperands() and ASTContext::mergeTypes(): Change handling of ObjC qualified id types to be consistent with gcc. This changes a handful of test case errors into warnings (diff will tell you which cases have changed). 2008-10-20 18:19:10 +00:00
comptypes-8.m Use -verify for consistency. 2009-02-20 02:03:47 +00:00
comptypes-9.m
comptypes-a.m (instance/class) Method type checking between class and its implementation. 2008-12-05 18:18:52 +00:00
comptypes-legal.m This fixes <rdar://problem/6497650> More type mismatches issues with clang. 2009-02-21 16:18:07 +00:00
conditional-expr-2.m Fix <rdar://problem/6499801> clang does not detect objc type mismatch in conditional expr 2009-02-12 19:05:07 +00:00
conditional-expr-3.m Fix a minor typo in the handling of the conditional operator for Objective-C interface pointers 2008-11-26 06:43:45 +00:00
conditional-expr-4.m Iterate on sema for :? in Objective-C: 2008-09-11 23:12:46 +00:00
conditional-expr.m Finish up some fixes related to <rdar://problem/6497631> Message lookup is sometimes different than gcc's. 2009-03-04 15:11:40 +00:00
conflicting-ivar-test-1.m Make all the 'redefinition' diagnostics more consistent, and make the 2008-11-23 23:12:31 +00:00
continuation-class-err.m Since we do not allow a readonly property to be 'copy'retain', we 2008-12-08 18:47:29 +00:00
duplicate-ivar-check.m Unify the code for defining tags in C and C++, so that we always 2009-01-08 20:45:30 +00:00
enhanced-proto-2.m
error-property-gc-attr.m Diagnose gc attribute mismatch of property and its ivar. 2009-02-27 22:38:11 +00:00
exprs.m Start improving diagnostics that relate to subcharacters of string literals. 2009-02-18 17:49:48 +00:00
foreach-1.m Change a whole lot of diagnostics to take QualType's directly 2008-11-24 06:25:27 +00:00
format-strings-objc.m Add support for CFString in format attribute. 2008-09-26 03:32:58 +00:00
forward-class-1.m make some objc redefinition warnings more consistent: call definitions 2008-11-23 22:46:27 +00:00
gcc-cast-ext.m
id-1.m Don't ICE on user redeclaration of objc's built-in types. 2009-01-16 19:58:32 +00:00
id_builtin.m
incompatible-protocol-qualified-types.m
interface-1.m fix rdar://6611778, a redefinition of an interface was causing an 2009-02-23 22:00:08 +00:00
interface-layout-2.m Fix <rdar://problem/6450964> clang on xcode: Assertion failed: (RecordForDecl && "lookupFieldDeclForIvar no storage for class"). 2008-12-17 14:13:49 +00:00
interface-layout.m
interface-scope-2.m specify a triple to use, otherwise we get errors on this test for 2009-02-16 17:11:14 +00:00
interface-scope.m Unify the code for defining tags in C and C++, so that we always 2009-01-08 20:45:30 +00:00
interface-tu-variable.m Issue error if variables are defined inside an objc class, 2009-03-21 18:06:45 +00:00
invalid-code.m Fix rdar://6124613 a crash on invalid code. 2008-08-05 06:19:09 +00:00
invalid-objc-decls-1.m Fix <rdar://problem/6500554> missing objc error message. 2009-02-20 22:59:16 +00:00
invalid-receiver.m Don't ICE (issue diagnostics) when receiver is a non-objc 2009-01-16 20:35:09 +00:00
invalid-typename.m make the 'to match this' diagnostic a note. 2008-11-23 23:17:07 +00:00
ivar-access-tests.m Implemented access check for ivars accessed inside 2009-03-04 22:30:12 +00:00
ivar-lookup.m
ivar-ref-misuse.m Diagnose a variety of access of ivars when they conflict with 2009-03-02 21:55:29 +00:00
ivar-sem-check-1.m fix rdar://6611778, a redefinition of an interface was causing an 2009-02-23 22:00:08 +00:00
legacy-implementation-1.m
message.m Improve the "bad receiver" warning for ObjC message sends to be less confusing. 2009-03-11 03:47:47 +00:00
method-arg-decay.m Add testcase for commit r60781. 2008-12-09 20:59:16 +00:00
method-attributes.m Improve attribute parsing & tests. 2008-10-19 02:04:16 +00:00
method-bad-param.m Fix <rdar://problem/6500554> missing objc error message. 2009-02-20 22:59:16 +00:00
method-conflict.m The "real" fix for <rdar://problem/6424347> clang on xcode: Assertion failed: (0 && "unexpected type"), function mergeTypes, 2008-12-10 22:14:21 +00:00
method-def-1.m Patch for diagnosing type mismatch between 2008-12-05 01:35:25 +00:00
method-def-2.m
method-encoding-2.m
method-lookup-2.m Fix <rdar://problem/6614945> method not found. 2009-02-26 18:16:19 +00:00
method-lookup-3.m convert some more warnings to NOTEs. 2008-11-23 23:26:13 +00:00
method-lookup-4.m Improvements to private method lookup. 2009-03-08 18:56:13 +00:00
method-lookup.m
method-no-context.m Fix <rdar://problem/6635908> crash on invalid 2009-03-03 00:45:38 +00:00
method-not-defined.m
method-typecheck-1.m Fixed a test case. Added a test case showing property setter's 2008-12-05 18:38:31 +00:00
method-undef-category-warn-1.m
method-undef-extension-warn-1.m "This patch uses the new ObjCImplDecl class to merge Sema::ImplMethodsVsClassMethods and Sema::ImplCategoryMethodsVsIntfMethods methods. 2009-03-01 00:56:52 +00:00
method-undefined-warn-1.m
missing-method-context.m
newproperty-class-method-1.m Implement FIXME related to <rdar://problem/6496506> Implement class setter/getter for properties. 2009-03-11 20:12:18 +00:00
nsobject-attribute.m Implemenent objective-c's NSObject attribute as a way of ddeclaraing c-type 2009-01-13 23:34:40 +00:00
objc2-warn-weak-decl.m Warn on use of __weak attribute on local 2009-02-21 19:44:02 +00:00
property-1.m Force triple for a couple test cases. 2009-03-13 22:48:51 +00:00
property-2.m
property-3.m Remove old/incorrect warnings. 2009-03-03 15:49:23 +00:00
property-4.m This patch removes mergeProperties and does the property lookup 2009-01-09 21:04:52 +00:00
property-5.m Remove old/incorrect warnings. 2009-03-03 15:49:23 +00:00
property-6.m Restore Objective-C dot-syntax access of methods. 2008-09-03 01:05:41 +00:00
property-7.m
property-8.m
property-9-impl-method.m Fix <rdar://problem/6655054> clang issues bogus error on property usage in a dot-syntax. 2009-03-11 15:15:01 +00:00
property-9.m Implement support for anonymous structs and unions in C. Both C and 2009-01-12 22:49:06 +00:00
property-10.m Place warning about 'readonly' property attributes which 2009-01-08 23:23:10 +00:00
property-11.m Contains the following (related to problems found while investigting <rdar://problem/6497631> Message lookup is sometimes different than gcc's). 2009-02-22 19:35:57 +00:00
property-12.m Place warning about 'readonly' property attributes which 2009-01-08 23:23:10 +00:00
property-13.m Fix <rdar://problem/6574319> clang issues error on 'readonly' property with a defaul setter attribute. 2009-02-26 19:11:32 +00:00
property-category-1.m Finish up some fixes related to <rdar://problem/6497631> Message lookup is sometimes different than gcc's. 2009-03-04 15:11:40 +00:00
property-category-2.m Patch to allow @dynamic synthesis of property in a category, 2009-01-19 18:16:19 +00:00
property-category-3.m Remove old/incorrect warnings. 2009-03-03 15:49:23 +00:00
property-error-readonly-assign.m Support for implicit property assignment. Error assigning to 2008-11-22 20:25:50 +00:00
property-impl-misuse.m This test checks for duplicate implementation of the same 2008-12-05 22:32:48 +00:00
property-inherited.m Fix <rdar://problem/6497242> Inherited overridden protocol declared objects don't work. 2009-03-03 15:43:24 +00:00
property-ivar-mismatch.m Type of property and its ivar is more restrictive 2009-01-19 20:13:47 +00:00
property-missing.m Fix for PR3234 2008-12-19 17:27:57 +00:00
property-nonfragile-abi.m 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. 2009-03-05 15:45:01 +00:00
property-noprotocol-warning.m Finish up some fixes related to <rdar://problem/6497631> Message lookup is sometimes different than gcc's. 2009-03-04 15:11:40 +00:00
property-redundant-decl-accessor.m Prevent bogus warning on unimplemented setter/getter when user 2008-12-09 22:43:22 +00:00
property-typecheck-1.m Consolidated property check into property-typecheck-1.m file. 2008-12-17 17:55:55 +00:00
property-user-setter.m Fix <rdar://problem/6578665> user declared setter method should be used when using property syntx. 2009-03-11 13:48:17 +00:00
property-weak.m Ignore weak import on properties. 2009-03-18 15:05:17 +00:00
props-on-prots.m
protocol-archane.m - Generate error for protocol qualifiers on 'Class'. 2009-02-23 18:53:24 +00:00
protocol-atttribute-1.m - Generate error for protocol qualifiers on 'Class'. 2009-02-23 18:53:24 +00:00
protocol-expr-1.m
protocol-expr-neg-1.m
protocol-forward-circular.m Fix <rdar://problem/6144382> [sema] gcc inconsistency w.r.t. forward protocol declarations. 2009-03-05 15:22:01 +00:00
protocol-id-test-1.m Contains the following (related to problems found while investigting <rdar://problem/6497631> Message lookup is sometimes different than gcc's). 2009-02-22 19:35:57 +00:00
protocol-id-test-2.m Contains the following (related to problems found while investigting <rdar://problem/6497631> Message lookup is sometimes different than gcc's). 2009-02-22 19:35:57 +00:00
protocol-id-test-3.m Downgrade incompatibilities with objc qualified types (e.g. id <P>) to warnings. 2008-10-14 22:18:38 +00:00
protocol-implementation-inherited.m Fix unintended use of doxygen comment strings. 2008-09-04 21:54:53 +00:00
protocol-lookup-2.m Fix ObjCInterfaceDecl::lookupInstanceMethod()/lookupClassMethod() to search in inherited protocols. 2009-02-26 11:32:02 +00:00
protocol-lookup.m Fix http://llvm.org/bugs/show_bug.cgi?id=3189. 2008-12-18 15:50:41 +00:00
protocol-test-1.m refactor a bunch of code: 2008-10-20 06:10:06 +00:00
protocol-test-2.m make some objc redefinition warnings more consistent: call definitions 2008-11-23 22:46:27 +00:00
protocol-typecheck.m Fix <rdar://problem/6619539> incompatible pointer types sending 'XCElementSpacer *', expected 'XCElement *' (not handling protocol signatures correctly?). 2009-03-01 16:12:44 +00:00
protocol-undef.m Fix <rdar://problem/6619539> incompatible pointer types sending 'XCElementSpacer *', expected 'XCElement *' (not handling protocol signatures correctly?). 2009-03-01 16:12:44 +00:00
rdr-6211479-array-property.m Add XFAIL test case for: 2008-09-10 23:11:23 +00:00
selector-1.m Fix <rdar://problem/6505139> [clang on growl]: need to allow unnamed selectors as the first argument 2009-02-11 20:43:13 +00:00
selector-overload.m
static-ivar-ref-1.m Check of ivar access access control. 2009-03-03 01:21:12 +00:00
string.m Rewrite FindDiagnostics to be more strict about the formatting of the 2008-11-24 01:28:17 +00:00
super-cat-prot.m ObjCInterfaceDecl::lookupInstanceMethod() needs to look through a categories protocols. 2008-12-08 20:57:28 +00:00
super-property-notation.m Partial fix <rdar://problem/6301205> [irgen] dot-syntax on super isn't supported. 2009-03-05 20:12:00 +00:00
super.m Improve the "bad receiver" warning for ObjC message sends to be less confusing. 2009-03-11 03:47:47 +00:00
synchronized.m
try-catch.m Turn warning into error. Minor incompatibility with GCC (for scalar types, GCC only produces a warning). 2009-02-12 15:54:59 +00:00
typedef-class.m
undef-class-messagin-error.m Don't ICE when messaging on 'super' receiver when class 2009-01-07 21:01:41 +00:00
undef-protocol-methods-1.m
undef-superclass-1.m make some objc redefinition warnings more consistent: call definitions 2008-11-23 22:46:27 +00:00
undefined-protocol-type-1.m
unused.m
va-method-1.m
warn-selector-selection.m Implement an important missing warning when a selector 2009-03-03 22:19:15 +00:00
warn-weak-field.m __weak ivar need not warn. 2008-11-20 19:35:51 +00:00
weak-attr-ivar.m Do not issue bogus error on __weak/__strong ivar access. 2009-02-26 23:05:51 +00:00