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:
parent
b106c45f80
commit
d2c7393544
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue