diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-03-14 15:02:45 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-03-14 15:02:45 +0000 |
commit | d85eff49a3c0e2365b3457c762d4bdb72f82800f (patch) | |
tree | 614de878d0541998690a9ec44e7dc1b42103ff84 /clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp | |
parent | 5c77e39f2d867e4862a557aab6d81f0d6d8165c4 (diff) | |
download | bcm5719-llvm-d85eff49a3c0e2365b3457c762d4bdb72f82800f.tar.gz bcm5719-llvm-d85eff49a3c0e2365b3457c762d4bdb72f82800f.zip |
[C++11] Replacing ObjCCategoryDecl iterators propimpl_begin() and propimpl_end() with iterator_range property_impls(). Updating all of the usages of the iterators with range-based for loops.
llvm-svn: 203930
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp b/clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp index d05dd682379..827a10a7462 100644 --- a/clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp @@ -208,9 +208,7 @@ static void checkObjCDealloc(const CheckerBase *Checker, // Scan for missing and extra releases of ivars used by implementations // of synthesized properties - for (ObjCImplementationDecl::propimpl_iterator I = D->propimpl_begin(), - E = D->propimpl_end(); I!=E; ++I) { - + for (const auto *I : D->property_impls()) { // We can only check the synthesized properties if (I->getPropertyImplementation() != ObjCPropertyImplDecl::Synthesize) continue; @@ -258,7 +256,7 @@ static void checkObjCDealloc(const CheckerBase *Checker, } PathDiagnosticLocation SDLoc = - PathDiagnosticLocation::createBegin(*I, BR.getSourceManager()); + PathDiagnosticLocation::createBegin(I, BR.getSourceManager()); BR.EmitBasicReport(MD, Checker, name, categories::CoreFoundationObjectiveC, os.str(), SDLoc); |