Remove BaseType typedef from Type classes
ClosedPublic

Authored by nalvarez on Jan 25 2017, 1:06 AM.

Details

Reviewers
mwolff
Summary

The documentation on AbstractType says subclasses must have a BaseType typedef. However, very few types actually had it, and nothing uses it anymore (apparently only the oldcpp code used it in the past).

So I'm removing the remaining BaseType typedefs, and adjusting the doxygen comment that says you need it.

If approved, I'll send patches for other repos too (kdevelop has 1 remaining BaseType and kdev-python has 3).

Test Plan

Tested compilation of KDevPlatform, KDevelop, and KDev-Python (master branch for all).

Diff Detail

Repository
R33 KDevPlatform
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
nalvarez updated this revision to Diff 10508.Jan 25 2017, 1:06 AM
nalvarez retitled this revision from to Remove BaseType typedef from Type classes.
nalvarez updated this object.
nalvarez edited the test plan for this revision. (Show Details)
nalvarez set the repository for this revision to R33 KDevPlatform.
Restricted Application added a subscriber: kdevelop-devel. · View Herald TranscriptJan 25 2017, 1:06 AM
mwolff added a subscriber: mwolff.Jan 25 2017, 9:14 AM

this could be useful though for generic code, potentially - no?

anyhow, if it's really unused, feel free to remove it...

In D4274#80052, @mwolff wrote:

this could be useful though for generic code, potentially - no?

anyhow, if it's really unused, feel free to remove it...

If you think BaseType is useful and should be kept, that's another option. But then we should add it to all the types that don't have it!

nah, if it's not used, adding it makes no sense. anyhow, I'm undecided on this. if we need it in the future we can add it, right? so go for it

@mwolff I screwed up with the commit message and this review didn't get automatically closed. I also can't close it manually. Maybe you need to "formally" mark it as approved in Phabricator?

mwolff accepted this revision.Jan 29 2017, 7:44 PM
mwolff added a reviewer: mwolff.

thanks, closing then

This revision is now accepted and ready to land.Jan 29 2017, 7:44 PM
mwolff closed this revision.Jan 29 2017, 7:44 PM