1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-25 09:55:29 +02:00

Patch for Bryan - 180885 - handles content assist of names after parens which is ambiguious in C.

This commit is contained in:
Doug Schaefer 2007-04-04 15:58:48 +00:00
parent b106c45f80
commit d2c7393544
2 changed files with 3 additions and 3 deletions

View file

@ -850,8 +850,8 @@ public class GNUCSourceParser extends AbstractGNUSourceCodeParser {
startCastExpression=mark();
castExpression = castExpression();
break;
case IToken.tEOC:
break;
// case IToken.tEOC: // support for completion removed
// break; // in favour of another parse tree
default:
needBack = true;
// throw backtrack;

View file

@ -66,7 +66,7 @@ public class CompletionTests_PlainC extends AbstractContentAssistTest {
//void test() {
// int myvar;
// (my/*cursor*/
public void _testLocalVariableAfterOpeningParen_Bug180885() throws Exception {
public void testLocalVariableAfterOpeningParen_Bug180885() throws Exception {
final String[] expected= {
"myvar"
};