DUChain: Remove duplicates inside getInheriters
ClosedPublic

Authored by kfunk on Dec 17 2015, 11:12 PM.

Details

Summary

Example navigation popup before:

Inheritors for AbstractDeclarationNavigationContext:
DeclarationNavigationContext, CMakeDeclarationNavigationContext, QmlJS::DeclarationNavigationContext,
DeclarationNavigationContext

After:

Inheritors for AbstractDeclarationNavigationContext:
CMakeDeclarationNavigationContext, QmlJS::DeclarationNavigationContext,
DeclarationNavigationContext

Diff Detail

Repository
R33 KDevPlatform
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kfunk updated this revision to Diff 1548.Dec 17 2015, 11:12 PM
kfunk retitled this revision from to DUChain: Remove duplicates inside getInheriters.
kfunk updated this object.
kfunk edited the test plan for this revision. (Show Details)
Restricted Application added a subscriber: kdevelop-devel. · View Herald TranscriptDec 17 2015, 11:12 PM

Does the job, but I'm happy to be convinced by better solutions.

mwolff accepted this revision.Dec 19 2015, 12:12 PM
mwolff added a reviewer: mwolff.
mwolff added a subscriber: mwolff.

+1,the list is usually small and the order is unimportant, so having it sorted and having duplicates removed sounds like a good idea to me.

This revision is now accepted and ready to land.Dec 19 2015, 12:12 PM
This revision was automatically updated to reflect the committed changes.