1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56:01 +02:00

bug 234463, fix for CompletionTest_ArgumentType_Prefix

This commit is contained in:
Mike Kucera 2008-05-28 18:51:23 +00:00
parent 09295cf66e
commit e26da8fa71

View file

@ -1335,6 +1335,11 @@ public class CPPBuildASTParserAction extends BuildASTParserAction {
public void consumeInitDeclaratorComplete() { public void consumeInitDeclaratorComplete() {
if(TRACE_ACTIONS) DebugUtil.printMethodTrace(); if(TRACE_ACTIONS) DebugUtil.printMethodTrace();
// Don't do disambiguation when parsing for content assist,
// trust me this makes things work out a lot better.
if(completionNode != null)
return;
IASTDeclarator declarator = (IASTDeclarator) astStack.peek(); IASTDeclarator declarator = (IASTDeclarator) astStack.peek();
if(!(declarator instanceof IASTFunctionDeclarator)) if(!(declarator instanceof IASTFunctionDeclarator))
return; return;