Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2004-10-06 17:40:09 -0400
committerAndrew Niefer2004-10-06 17:40:09 -0400
commit6013159eb01640778f257ff9f1a90f9fa854e355 (patch)
tree570765db766a11fa3a678676131eb0b11ee3a932
parentd0af45ca075b9b715b7d1db61074569a1df2a9d6 (diff)
downloadorg.eclipse.cdt-6013159eb01640778f257ff9f1a90f9fa854e355.tar.gz
org.eclipse.cdt-6013159eb01640778f257ff9f1a90f9fa854e355.tar.xz
org.eclipse.cdt-6013159eb01640778f257ff9f1a90f9fa854e355.zip
add line and offset info to problems during a lookup
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java
index 45f6bc785ce..a6ce2de4678 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java
@@ -325,7 +325,15 @@ public class CompleteParseASTFactory extends BaseASTFactory implements IASTFacto
case 1:
image = name.extractNameFromTemplateId();
args = ( templateArgLists != null ) ? getTemplateArgList( templateArgLists[ 0 ] ) : null;
+ try{
result = lookupElement(startingScope, image, type, parameters, args, lookup );
+ } catch ( ASTSemanticException e ){
+ if( e.getProblem() == null || e.getProblem().getSourceLineNumber() == -1 ){
+ handleProblem(e.getProblem().getID(), image, name.getStartOffset(), name.getEndOffset(), name.getLineNumber(), e.getProblem().isError() );
+ } else {
+ throw e;
+ }
+ }
if( result != null )
{

Back to the top