QualType getBaseType() const { return BaseType; }
/// \brief Retrieve the Objective-C selector identifiers.
- IdentifierInfo * const *getSelIdents() const { return SelIdents.data(); }
-
- /// \brief Retrieve the number of Objective-C selector identifiers.
- unsigned getNumSelIdents() const { return SelIdents.size(); }
+ ArrayRef<IdentifierInfo *> getSelIdents() const { return SelIdents; }
/// \brief Determines whether we want C++ constructors as results within this
/// context.
AllocatedResults.Contexts = getContextsForContextKind(contextKind, S);
AllocatedResults.Selector = "";
- if (Context.getNumSelIdents() > 0) {
- for (unsigned i = 0; i < Context.getNumSelIdents(); i++) {
- IdentifierInfo *selIdent = Context.getSelIdents()[i];
- if (selIdent != NULL) {
- StringRef selectorString = Context.getSelIdents()[i]->getName();
- AllocatedResults.Selector += selectorString;
- }
- AllocatedResults.Selector += ":";
+ for (unsigned i = 0, e = Context.getSelIdents().size(); i != e; i++) {
+ IdentifierInfo *selIdent = Context.getSelIdents()[i];
+ if (selIdent != NULL) {
+ StringRef selectorString = Context.getSelIdents()[i]->getName();
+ AllocatedResults.Selector += selectorString;
}
+ AllocatedResults.Selector += ":";
}
QualType baseType = Context.getBaseType();