Skip to content
Snippets Groups Projects
Commit 3082395c authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Disabled invalid ObjC++ discovery code.

Task-number: QTCREATORBUG-1501
Reviewed-by: Roberto Raggi
parent 49d5cacd
No related branches found
No related tags found
No related merge requests found
...@@ -130,6 +130,7 @@ int ExpressionUnderCursor::startOfExpression_helper(BackwardsScanner &tk, int in ...@@ -130,6 +130,7 @@ int ExpressionUnderCursor::startOfExpression_helper(BackwardsScanner &tk, int in
// which we handle immediately: // which we handle immediately:
return index - 3; return index - 3;
} else { } else {
#if 0 // see QTCREATORBUG-1501
// See if we are handling an Objective-C messaging expression in the form of: // See if we are handling an Objective-C messaging expression in the form of:
// [receiver messageParam1:expression messageParam2 // [receiver messageParam1:expression messageParam2
// or: // or:
...@@ -154,6 +155,7 @@ int ExpressionUnderCursor::startOfExpression_helper(BackwardsScanner &tk, int in ...@@ -154,6 +155,7 @@ int ExpressionUnderCursor::startOfExpression_helper(BackwardsScanner &tk, int in
if (tk[j].is(T_IDENTIFIER) && tk[j + 1].is(T_IDENTIFIER)) if (tk[j].is(T_IDENTIFIER) && tk[j + 1].is(T_IDENTIFIER))
return i; return i;
} }
#endif
} }
return index - 1; return index - 1;
} else if (tk[index - 1].is(T_RPAREN)) { } else if (tk[index - 1].is(T_RPAREN)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment