mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
bug 234463, fix for CompletionTest_ArgumentType_Prefix
This commit is contained in:
parent
09295cf66e
commit
e26da8fa71
1 changed files with 5 additions and 0 deletions
|
@ -1335,6 +1335,11 @@ public class CPPBuildASTParserAction extends BuildASTParserAction {
|
|||
public void consumeInitDeclaratorComplete() {
|
||||
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();
|
||||
if(!(declarator instanceof IASTFunctionDeclarator))
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue