mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 11:55:40 +02:00
Patch for Bryan - 180885 - handles content assist of names after parens which is ambiguious in C.
This commit is contained in:
parent
b106c45f80
commit
d2c7393544
2 changed files with 3 additions and 3 deletions
|
@ -850,8 +850,8 @@ public class GNUCSourceParser extends AbstractGNUSourceCodeParser {
|
||||||
startCastExpression=mark();
|
startCastExpression=mark();
|
||||||
castExpression = castExpression();
|
castExpression = castExpression();
|
||||||
break;
|
break;
|
||||||
case IToken.tEOC:
|
// case IToken.tEOC: // support for completion removed
|
||||||
break;
|
// break; // in favour of another parse tree
|
||||||
default:
|
default:
|
||||||
needBack = true;
|
needBack = true;
|
||||||
// throw backtrack;
|
// throw backtrack;
|
||||||
|
|
|
@ -66,7 +66,7 @@ public class CompletionTests_PlainC extends AbstractContentAssistTest {
|
||||||
//void test() {
|
//void test() {
|
||||||
// int myvar;
|
// int myvar;
|
||||||
// (my/*cursor*/
|
// (my/*cursor*/
|
||||||
public void _testLocalVariableAfterOpeningParen_Bug180885() throws Exception {
|
public void testLocalVariableAfterOpeningParen_Bug180885() throws Exception {
|
||||||
final String[] expected= {
|
final String[] expected= {
|
||||||
"myvar"
|
"myvar"
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue