summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaCodeComplete.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-03-10 17:08:28 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-03-10 17:08:28 +0000
commitbe22bcb180714600926d5247ad9439f75cfc49db (patch)
tree4e134eb4edee82e21c48c0ed730c301aabace541 /clang/lib/Sema/SemaCodeComplete.cpp
parenta7a94d10eaf571470868c65d232bf9c7c8621285 (diff)
downloadbcm5719-llvm-be22bcb180714600926d5247ad9439f75cfc49db.tar.gz
bcm5719-llvm-be22bcb180714600926d5247ad9439f75cfc49db.zip
[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.
llvm-svn: 203474
Diffstat (limited to 'clang/lib/Sema/SemaCodeComplete.cpp')
-rw-r--r--clang/lib/Sema/SemaCodeComplete.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/clang/lib/Sema/SemaCodeComplete.cpp b/clang/lib/Sema/SemaCodeComplete.cpp
index 6a0c4c4d04a..2724c646be1 100644
--- a/clang/lib/Sema/SemaCodeComplete.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud