CppEditor: Make virtual overrides data-driven

Change-Id: I07dcb0fecd6d3927d49ff100228da88eb4601f8b
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>