Disabled invalid ObjC++ discovery code.

Task-number: QTCREATORBUG-1501
Reviewed-by: Roberto Raggi
This commit is contained in:
Erik Verbruggen
2010-05-28 12:15:54 +02:00
parent 49d5cacd35
commit 3082395c14

View File

@@ -130,6 +130,7 @@ int ExpressionUnderCursor::startOfExpression_helper(BackwardsScanner &tk, int in
// which we handle immediately:
return index - 3;
} else {
#if 0 // see QTCREATORBUG-1501
// See if we are handling an Objective-C messaging expression in the form of:
// [receiver messageParam1:expression messageParam2
// or:
@@ -154,6 +155,7 @@ int ExpressionUnderCursor::startOfExpression_helper(BackwardsScanner &tk, int in
if (tk[j].is(T_IDENTIFIER) && tk[j + 1].is(T_IDENTIFIER))
return i;
}
#endif
}
return index - 1;
} else if (tk[index - 1].is(T_RPAREN)) {