diff options
author | Chris Lattner <sabre@nondot.org> | 2008-03-16 21:23:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-03-16 21:23:50 +0000 |
commit | 41eec3d0979e80cbe7e754b4e3c85acc00cc8dd6 (patch) | |
tree | 6300a33d4bc37b723fa42f5dee54cf6739ff689d /clang/Driver/RewriteTest.cpp | |
parent | 219b3e9c6cc7965b375bf8d11bd30f78d5bae7fa (diff) | |
download | bcm5719-llvm-41eec3d0979e80cbe7e754b4e3c85acc00cc8dd6.tar.gz bcm5719-llvm-41eec3d0979e80cbe7e754b4e3c85acc00cc8dd6.zip |
make property addition work list all other "add" methods. Do
the allocation in the class, not in sema.
llvm-svn: 48433
Diffstat (limited to 'clang/Driver/RewriteTest.cpp')
-rw-r--r-- | clang/Driver/RewriteTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/Driver/RewriteTest.cpp b/clang/Driver/RewriteTest.cpp index 2b88c0c8f35..927053e1629 100644 --- a/clang/Driver/RewriteTest.cpp +++ b/clang/Driver/RewriteTest.cpp @@ -146,7 +146,7 @@ namespace { void RewriteProtocolDecl(ObjCProtocolDecl *Dcl); void RewriteForwardProtocolDecl(ObjCForwardProtocolDecl *Dcl); void RewriteMethodDeclaration(ObjCMethodDecl *Method); - void RewriteProperties(int nProperties, ObjCPropertyDecl **Properties); + void RewriteProperties(unsigned nProperties, ObjCPropertyDecl **Properties); void RewriteFunctionDecl(FunctionDecl *FD); void RewriteObjCQualifiedInterfaceTypes(Decl *Dcl); bool needToScanForQualifiers(QualType T); @@ -549,9 +549,9 @@ void RewriteTest::RewriteMethodDeclaration(ObjCMethodDecl *Method) { } } -void RewriteTest::RewriteProperties(int nProperties, ObjCPropertyDecl **Properties) +void RewriteTest::RewriteProperties(unsigned nProperties, ObjCPropertyDecl **Properties) { - for (int i = 0; i < nProperties; i++) { + for (unsigned i = 0; i < nProperties; i++) { ObjCPropertyDecl *Property = Properties[i]; SourceLocation Loc = Property->getLocation(); |