File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1360,11 +1360,9 @@ Library::UseRetValType Library::getUseRetValType(const Token *ftok) const
13601360{
13611361 if (Token::simpleMatch (ftok->astParent (), " ." )) {
13621362 using Yield = Library::Container::Yield;
1363- using Action = Library::Container::Action;
13641363 const Yield yield = astContainerYield (ftok->astParent ()->astOperand1 ());
1365- if (yield == Yield::START_ITERATOR || yield == Yield::END_ITERATOR || yield == Yield::AT_INDEX ||
1366- yield == Yield::SIZE || yield == Yield::EMPTY || yield == Yield::BUFFER || yield == Yield::BUFFER_NT ||
1367- ((yield == Yield::ITEM || yield == Yield::ITERATOR) && astContainerAction (ftok->astParent ()->astOperand1 ()) == Action::NO_ACTION))
1364+ if (yield == Yield::START_ITERATOR || yield == Yield::END_ITERATOR || yield == Yield::SIZE || yield == Yield::EMPTY ||
1365+ (yield == Yield::ITEM && astContainerAction (ftok->astParent ()->astOperand1 ()) == Library::Container::Action::NO_ACTION))
13681366 return Library::UseRetValType::DEFAULT;
13691367 }
13701368 if (isNotLibraryFunction (ftok))
You can’t perform that action at this time.
0 commit comments