1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2016-03-11 19:10:12 -08:00
parent 6009665334
commit 2f32c523f5

View file

@ -159,9 +159,10 @@ public class DOMCompletionProposalComputer extends ParsingBasedProposalComputer
IASTName[] names = completionNode.getNames();
for (IASTName name : names) {
if (name.getTranslationUnit() == null)
if (name.getTranslationUnit() == null) {
// The node isn't properly hooked up, must have backtracked out of this node.
continue;
}
IASTCompletionContext astContext = name.getCompletionContext();
if (astContext == null) {