diff options
| author | Craig Topper <craig.topper@gmail.com> | 2015-10-22 04:59:56 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2015-10-22 04:59:56 +0000 |
| commit | a9247eb2b14198d6a87265fa824810fbb89b3589 (patch) | |
| tree | b016229abe86e1d5f6785c9286e03f8235a18244 /clang/lib/Parse | |
| parent | d96b3f9b2acf10317f8ccf9c173c875e872b2c90 (diff) | |
| download | bcm5719-llvm-a9247eb2b14198d6a87265fa824810fbb89b3589.tar.gz bcm5719-llvm-a9247eb2b14198d6a87265fa824810fbb89b3589.zip | |
Change FindProtocolDeclaration to take an ArrayRef and use a range-based for loop. NFC
llvm-svn: 250988
Diffstat (limited to 'clang/lib/Parse')
| -rw-r--r-- | clang/lib/Parse/ParseObjc.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/Parse/ParseObjc.cpp b/clang/lib/Parse/ParseObjc.cpp index ab097661f8b..a4e499cf64e 100644 --- a/clang/lib/Parse/ParseObjc.cpp +++ b/clang/lib/Parse/ParseObjc.cpp @@ -342,8 +342,7 @@ Decl *Parser::ParseObjCAtInterfaceDeclaration(SourceLocation AtLoc, } Actions.FindProtocolDeclaration(/*WarnOnDeclarations=*/true, /*ForObjCContainer=*/true, - &ProtocolIdents[0], ProtocolIdents.size(), - protocols); + ProtocolIdents, protocols); } } else if (protocols.empty() && Tok.is(tok::less) && ParseObjCProtocolReferences(protocols, protocolLocs, true, true, @@ -1584,8 +1583,7 @@ ParseObjCProtocolReferences(SmallVectorImpl<Decl *> &Protocols, // Convert the list of protocols identifiers into a list of protocol decls. Actions.FindProtocolDeclaration(WarnOnDeclarations, ForObjCContainer, - &ProtocolIdents[0], ProtocolIdents.size(), - Protocols); + ProtocolIdents, Protocols); return false; } |

