diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-11-14 22:10:01 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-11-14 22:10:01 +0000 |
commit | b3029960632ca8a3248e74770eda64d6c16f7246 (patch) | |
tree | 7f7653e42ae5198506c92b81f6864f57242440d8 /test/SemaObjC/category-1.m | |
parent | 2bbcd5ce370753c86d312d2c72a97476ac35b073 (diff) | |
download | clang-b3029960632ca8a3248e74770eda64d6c16f7246.tar.gz |
Use Sema::RequireCompleteType to check for the completeness of
Objective-C classes. This has two purposes: to consistently provide
"forward declaration here" notes when we hit an incomplete type, and
to give LLDB a chance to complete the type.
RequireCompleteType bits from Sean Callanan!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144573 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaObjC/category-1.m')
-rw-r--r-- | test/SemaObjC/category-1.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaObjC/category-1.m b/test/SemaObjC/category-1.m index 4cc5dafaa9..f2d4abd5ae 100644 --- a/test/SemaObjC/category-1.m +++ b/test/SemaObjC/category-1.m @@ -31,9 +31,9 @@ @interface UnknownClass (Category) @end // expected-error {{cannot find interface declaration for 'UnknownClass'}} -@class MyClass2; +@class MyClass2; // expected-note{{forward declaration of class here}} -@interface MyClass2 (Category) @end // expected-error {{cannot find interface declaration for 'MyClass2'}} +@interface MyClass2 (Category) @end // expected-error {{cannot define category for undefined class 'MyClass2'}} @interface XCRemoteComputerManager @end |