Fix includedDefinitions, handle definition change in context switch…

Authored by cullmann on Aug 20 2018, 4:59 PM.

Description

Fix includedDefinitions, handle definition change in context switch AcceptedPublic

Fix includedDefinitions, handle definition change in context switch.
They were missing, see PHP/HTML.
I cleaned up the code a bit to just use QVector, no need for a queue, the order is anyways arbitrary (but stable).

BUG: 397659

Differential Revision: https://phabricator.kde.org/D14952