Before, foo[a] would only consider one possible type of foo.
Loop over all possible types and combine the values for each.
This requires https://phabricator.kde.org/D3422 to apply cleanly, but isn't closely tied to it.
Before, foo[a] would only consider one possible type of foo.
Loop over all possible types and combine the values for each.
This requires https://phabricator.kde.org/D3422 to apply cleanly, but isn't closely tied to it.
No test regressions. Adds three new tests, two of which fail without this patch.
Tried it on a few of my projects, it didn't crash.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Looks good to me, good feature as well. Thanks once more!
duchain/expressionvisitor.cpp | ||
---|---|---|
373 | You could replace this whole if/else by auto valueTypes = Helper::filterType(type, []() { return true; }); if you wanted. By the way, feel free to replace any QList you find anywhere by QVector ... it's a relict. |