Pass AbstractType::Ptr, not Declaration*, to accessAttribute()
ClosedPublic

Authored by flherne on Nov 18 2016, 8:31 PM.

Details

Summary

All but one caller had to look up the declaration only to have it converted back, so the previous version was pointless anyway.

This allows subscripting of expressions (inc. other subscripts), when the subscripted type isn't a ListType/IndexedContainer.

BUG: 359912

Test Plan

No test regressions or new compile warnings.

Added both examples from https://bugs.kde.org/show_bug.cgi?id=359912 to the test suite; they fail without this patch and pass with it.

Diff Detail

Repository
R53 KDevelop: Python Support
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
flherne updated this revision to Diff 8317.Nov 18 2016, 8:31 PM
flherne retitled this revision from to Pass AbstractType::Ptr, not Declaration*, to accessAttribute().
flherne updated this object.
flherne edited the test plan for this revision. (Show Details)
flherne set the repository for this revision to R53 KDevelop: Python Support.
Restricted Application added a subscriber: kdevelop-devel. · View Herald TranscriptNov 18 2016, 8:31 PM
flherne updated this revision to Diff 8318.Nov 18 2016, 9:01 PM
flherne edited the test plan for this revision. (Show Details)
flherne added a reviewer: brauch.
brauch accepted this revision.Nov 20 2016, 3:16 PM
brauch edited edge metadata.

As you say, obviously pointless code before. Thank you!

This revision is now accepted and ready to land.Nov 20 2016, 3:16 PM
This revision was automatically updated to reflect the committed changes.