[cfe-commits] r44007 - /cfe/trunk/Sema/SemaDecl.cpp
Steve Naroff
snaroff at apple.com
Sun Nov 11 20:22:53 PST 2007
Author: snaroff
Date: Sun Nov 11 22:22:52 2007
New Revision: 44007
URL: http://llvm.org/viewvc/llvm-project?rev=44007&view=rev
Log:
Make sure @property is allowed within a category.
Bug submitted by Keith Bauer.
CookieJar:Desktop keith$ cat test.m
#import <WebKit/WebKit.h>
Modified:
cfe/trunk/Sema/SemaDecl.cpp
Modified: cfe/trunk/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/SemaDecl.cpp?rev=44007&r1=44006&r2=44007&view=diff
==============================================================================
--- cfe/trunk/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/Sema/SemaDecl.cpp Sun Nov 11 22:22:52 2007
@@ -1763,8 +1763,9 @@
if (isa<RecordDecl>(static_cast<Decl *>(TagDecl)))
NewFD = new FieldDecl(Loc, II, T, BitWidth);
- else if (isa<ObjcInterfaceDecl>(static_cast<Decl *>(TagDecl))
- || isa<ObjcImplementationDecl>(static_cast<Decl *>(TagDecl)))
+ else if (isa<ObjcInterfaceDecl>(static_cast<Decl *>(TagDecl)) ||
+ isa<ObjcImplementationDecl>(static_cast<Decl *>(TagDecl)) ||
+ isa<ObjcCategoryDecl>(static_cast<Decl *>(TagDecl)))
NewFD = new ObjcIvarDecl(Loc, II, T);
else
assert(0 && "Sema::ActOnField(): Unknown TagDecl");
More information about the cfe-commits
mailing list