mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fixed compile error in CCompletionProcessor
This commit is contained in:
parent
b363b30e27
commit
7742dab0b8
1 changed files with 8 additions and 1 deletions
|
@ -28,6 +28,7 @@ import org.eclipse.cdt.core.parser.ParserFactory;
|
||||||
import org.eclipse.cdt.core.parser.ParserFactoryException;
|
import org.eclipse.cdt.core.parser.ParserFactoryException;
|
||||||
import org.eclipse.cdt.core.parser.ParserLanguage;
|
import org.eclipse.cdt.core.parser.ParserLanguage;
|
||||||
import org.eclipse.cdt.core.parser.ParserMode;
|
import org.eclipse.cdt.core.parser.ParserMode;
|
||||||
|
import org.eclipse.cdt.core.parser.ParserNotImplementedException;
|
||||||
import org.eclipse.cdt.core.parser.ParserUtil;
|
import org.eclipse.cdt.core.parser.ParserUtil;
|
||||||
import org.eclipse.cdt.core.parser.ScannerInfo;
|
import org.eclipse.cdt.core.parser.ScannerInfo;
|
||||||
import org.eclipse.cdt.core.parser.ast.ASTClassKind;
|
import org.eclipse.cdt.core.parser.ast.ASTClassKind;
|
||||||
|
@ -175,7 +176,13 @@ public class CompletionEngine implements RelevanceConstants{
|
||||||
|
|
||||||
}
|
}
|
||||||
if(parser != null){
|
if(parser != null){
|
||||||
IASTCompletionNode result = parser.parse(completionOffset);
|
IASTCompletionNode result = null;
|
||||||
|
try {
|
||||||
|
result = parser.parse(completionOffset);
|
||||||
|
} catch (ParserNotImplementedException e) {
|
||||||
|
// TODO Auto-generated catch block
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Add table
Reference in a new issue