diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2014-03-10 17:08:28 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2014-03-10 17:08:28 +0000 |
| commit | 15fd658d179dfa842e067e34d4442ead6b1e85e4 (patch) | |
| tree | 8dbb032dc38fbaade3ad3a745ca27eef0fc7563a /lib/Sema/SemaCodeComplete.cpp | |
| parent | 9c7670dee4c71de3076ccdfbe1f40a891e9d1525 (diff) | |
| download | clang-15fd658d179dfa842e067e34d4442ead6b1e85e4.tar.gz clang-15fd658d179dfa842e067e34d4442ead6b1e85e4.tar.bz2 clang-15fd658d179dfa842e067e34d4442ead6b1e85e4.tar.xz | |
[C++11] Replacing DeclBase iterators specific_attr_begin() and specific_attr_end() with iterator_range specific_attrs(). Updating all of the usages of the iterators with range-based for loops.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203474 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaCodeComplete.cpp')
| -rw-r--r-- | lib/Sema/SemaCodeComplete.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/Sema/SemaCodeComplete.cpp b/lib/Sema/SemaCodeComplete.cpp index 6a0c4c4d04..2724c646be 100644 --- a/lib/Sema/SemaCodeComplete.cpp +++ b/lib/Sema/SemaCodeComplete.cpp @@ -2638,12 +2638,8 @@ CodeCompletionResult::CreateCodeCompletionString(ASTContext &Ctx, return Result.TakeString(); } - for (specific_attr_iterator<AnnotateAttr> - i = ND->specific_attr_begin<AnnotateAttr>(), - e = ND->specific_attr_end<AnnotateAttr>(); - i != e; ++i) - Result.AddAnnotation( - Result.getAllocator().CopyString((*i)->getAnnotation())); + for (const auto *I : ND->specific_attrs<AnnotateAttr>()) + Result.AddAnnotation(Result.getAllocator().CopyString(I->getAnnotation())); AddResultTypeChunk(Ctx, Policy, ND, Result); |
