diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2014-03-13 19:11:50 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2014-03-13 19:11:50 +0000 |
| commit | d174edffa06a8212b784dbecdb4939ff300793a7 (patch) | |
| tree | 86ebe15dc122b233ec564428a4b6a6d3a5fb23c4 /clang/lib/Rewrite | |
| parent | e649335b1ec3bde940fb69a4244ed8ba38059b8d (diff) | |
| download | bcm5719-llvm-d174edffa06a8212b784dbecdb4939ff300793a7.tar.gz bcm5719-llvm-d174edffa06a8212b784dbecdb4939ff300793a7.zip | |
Renaming the recently-created (r203830) props() range API to properties() for clarity.
llvm-svn: 203835
Diffstat (limited to 'clang/lib/Rewrite')
| -rw-r--r-- | clang/lib/Rewrite/Frontend/RewriteModernObjC.cpp | 12 | ||||
| -rw-r--r-- | clang/lib/Rewrite/Frontend/RewriteObjC.cpp | 6 |
2 files changed, 9 insertions, 9 deletions
diff --git a/clang/lib/Rewrite/Frontend/RewriteModernObjC.cpp b/clang/lib/Rewrite/Frontend/RewriteModernObjC.cpp index 0c27af06f81..312c6ade05a 100644 --- a/clang/lib/Rewrite/Frontend/RewriteModernObjC.cpp +++ b/clang/lib/Rewrite/Frontend/RewriteModernObjC.cpp @@ -1160,7 +1160,7 @@ void RewriteModernObjC::RewriteCategoryDecl(ObjCCategoryDecl *CatDecl) { ReplaceText(LocStart, 0, "// "); } - for (auto *I : CatDecl->props()) + for (auto *I : CatDecl->properties()) RewriteProperty(I); for (ObjCCategoryDecl::instmeth_iterator @@ -1193,7 +1193,7 @@ void RewriteModernObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) { I != E; ++I) RewriteMethodDeclaration(*I); - for (auto *I : PDecl->props()) + for (auto *I : PDecl->properties()) RewriteProperty(I); // Lastly, comment out the @end. @@ -1451,7 +1451,7 @@ void RewriteModernObjC::RewriteInterfaceDecl(ObjCInterfaceDecl *ClassDecl) { // Mark this typedef as having been written into its c++ equivalent. ObjCWrittenInterfaces.insert(ClassDecl->getCanonicalDecl()); - for (auto *I : ClassDecl->props()) + for (auto *I : ClassDecl->properties()) RewriteProperty(I); for (ObjCInterfaceDecl::instmeth_iterator I = ClassDecl->instmeth_begin(), E = ClassDecl->instmeth_end(); @@ -7086,7 +7086,7 @@ void RewriteModernObjC::RewriteObjCProtocolMetaData(ObjCProtocolDecl *PDecl, PDecl->getNameAsString(), false); // Protocol's property metadata. - SmallVector<ObjCPropertyDecl *, 8> ProtocolProperties(PDecl->props()); + SmallVector<ObjCPropertyDecl *, 8> ProtocolProperties(PDecl->properties()); Write_prop_list_t_initializer(*this, Context, Result, ProtocolProperties, /* Container */0, "_OBJC_PROTOCOL_PROPERTIES_", @@ -7303,7 +7303,7 @@ void RewriteModernObjC::RewriteObjCClassMetaData(ObjCImplementationDecl *IDecl, IDecl->getNameAsString()); // Protocol's property metadata. - SmallVector<ObjCPropertyDecl *, 8> ClassProperties(CDecl->props()); + SmallVector<ObjCPropertyDecl *, 8> ClassProperties(CDecl->properties()); Write_prop_list_t_initializer(*this, Context, Result, ClassProperties, /* Container */IDecl, "_OBJC_$_PROP_LIST_", @@ -7558,7 +7558,7 @@ void RewriteModernObjC::RewriteObjCCategoryImplDecl(ObjCCategoryImplDecl *IDecl, FullCategoryName); // Protocol's property metadata. - SmallVector<ObjCPropertyDecl *, 8> ClassProperties(CDecl->props()); + SmallVector<ObjCPropertyDecl *, 8> ClassProperties(CDecl->properties()); Write_prop_list_t_initializer(*this, Context, Result, ClassProperties, /* Container */IDecl, "_OBJC_$_PROP_LIST_", diff --git a/clang/lib/Rewrite/Frontend/RewriteObjC.cpp b/clang/lib/Rewrite/Frontend/RewriteObjC.cpp index 32c3477fa60..de634d42591 100644 --- a/clang/lib/Rewrite/Frontend/RewriteObjC.cpp +++ b/clang/lib/Rewrite/Frontend/RewriteObjC.cpp @@ -980,7 +980,7 @@ void RewriteObjC::RewriteCategoryDecl(ObjCCategoryDecl *CatDecl) { // FIXME: handle category headers that are declared across multiple lines. ReplaceText(LocStart, 0, "// "); - for (auto *I : CatDecl->props()) + for (auto *I : CatDecl->properties()) RewriteProperty(I); for (ObjCCategoryDecl::instmeth_iterator @@ -1013,7 +1013,7 @@ void RewriteObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) { I != E; ++I) RewriteMethodDeclaration(*I); - for (auto *I : PDecl->props()) + for (auto *I : PDecl->properties()) RewriteProperty(I); // Lastly, comment out the @end. @@ -1243,7 +1243,7 @@ void RewriteObjC::RewriteInterfaceDecl(ObjCInterfaceDecl *ClassDecl) { } RewriteObjCInternalStruct(ClassDecl, ResultStr); - for (auto *I : ClassDecl->props()) + for (auto *I : ClassDecl->properties()) RewriteProperty(I); for (ObjCInterfaceDecl::instmeth_iterator I = ClassDecl->instmeth_begin(), E = ClassDecl->instmeth_end(); |

