Commit e96e7769 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

CppEditor: Remove template lookup for virtual functions

1) Virtual template functions make no sense.
2) It does not help us to find out if a function is virtual or not

Change-Id: Icb15f46b3aba5571e16fa55613a4806ad5de5940
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
parent f7ae3707
......@@ -252,11 +252,6 @@ static bool isVirtualFunction_helper(const Function *function,
foreach (const LookupItem &item, results) {
if (Symbol *symbol = item.declaration()) {
if (Function *functionType = symbol->type()->asFunctionType()) {
if (!functionType) {
if (Template *t = item.type()->asTemplateType())
if ((symbol = t->declaration()))
functionType = symbol->type()->asFunctionType();
}
const bool foundSuitable = virtualType == Virtual
? functionType->isVirtual()
: functionType->isPureVirtual();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment