Add Yield::AT_INDEX
This commit is contained in:
parent
ac87c1174c
commit
c609ef8814
|
@ -1361,7 +1361,7 @@ Library::UseRetValType Library::getUseRetValType(const Token *ftok) const
|
||||||
if (Token::simpleMatch(ftok->astParent(), ".")) {
|
if (Token::simpleMatch(ftok->astParent(), ".")) {
|
||||||
using Yield = Library::Container::Yield;
|
using Yield = Library::Container::Yield;
|
||||||
const Yield yield = astContainerYield(ftok->astParent()->astOperand1());
|
const Yield yield = astContainerYield(ftok->astParent()->astOperand1());
|
||||||
if (yield == Yield::START_ITERATOR || yield == Yield::END_ITERATOR ||
|
if (yield == Yield::START_ITERATOR || yield == Yield::END_ITERATOR || yield == Yield::AT_INDEX ||
|
||||||
yield == Yield::SIZE || yield == Yield::EMPTY || yield == Yield::BUFFER || yield == Yield::BUFFER_NT ||
|
yield == Yield::SIZE || yield == Yield::EMPTY || yield == Yield::BUFFER || yield == Yield::BUFFER_NT ||
|
||||||
(yield == Yield::ITEM && astContainerAction(ftok->astParent()->astOperand1()) == Library::Container::Action::NO_ACTION))
|
(yield == Yield::ITEM && astContainerAction(ftok->astParent()->astOperand1()) == Library::Container::Action::NO_ACTION))
|
||||||
return Library::UseRetValType::DEFAULT;
|
return Library::UseRetValType::DEFAULT;
|
||||||
|
|
Loading…
Reference in New Issue