1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Bug 495095 - Consider local variables for parameter guessing

Change-Id: I3e31a508a795b4e7f56d3e4407914d46bf4803ec
This commit is contained in:
Nathan Ridge 2016-06-01 02:29:34 -04:00
parent f184c70bdb
commit efdd3c7986

View file

@ -696,7 +696,7 @@ public class DOMCompletionProposalComputer extends ParsingBasedProposalComputer
IASTTranslationUnit ast = node.getTranslationUnit();
IASTName name = ast.getASTNodeFactory().newName(token.getCharImage());
((ASTNode) name).setOffsetAndLength(token.getOffset(), 0);
name.setParent(completionStatement.getParent());
name.setParent(completionStatement);
IBinding[] bindings = findBindingsForContextAssist(name, ast);
if (bindings.length == 0)