diff options
author | David Majnemer <david.majnemer@gmail.com> | 2016-06-24 04:05:48 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2016-06-24 04:05:48 +0000 |
commit | ba5c7ce848b313a3ed284dad37e49bb77f010811 (patch) | |
tree | 39ffe2381faae494f3e44a01cd2c649486fc8ee8 /lib/Sema/SemaCodeComplete.cpp | |
parent | cdc2235915bde8888291f6fd2090c6509e1b07b5 (diff) | |
download | clang-ba5c7ce848b313a3ed284dad37e49bb77f010811.tar.gz |
Use more ArrayRefs
No functional change is intended, just a small refactoring.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273647 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaCodeComplete.cpp')
-rw-r--r-- | lib/Sema/SemaCodeComplete.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaCodeComplete.cpp b/lib/Sema/SemaCodeComplete.cpp index 2b226b8e75..d910c6f8ad 100644 --- a/lib/Sema/SemaCodeComplete.cpp +++ b/lib/Sema/SemaCodeComplete.cpp @@ -3208,7 +3208,7 @@ static void MaybeAddOverrideCalls(Sema &S, DeclContext *InContext, // We need to have names for all of the parameters, if we're going to // generate a forwarding call. - for (auto P : Method->params()) + for (auto P : Method->parameters()) if (!P->getDeclName()) return; @@ -3240,7 +3240,7 @@ static void MaybeAddOverrideCalls(Sema &S, DeclContext *InContext, Overridden->getNameAsString())); Builder.AddChunk(CodeCompletionString::CK_LeftParen); bool FirstParam = true; - for (auto P : Method->params()) { + for (auto P : Method->parameters()) { if (FirstParam) FirstParam = false; else |