Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2016-12-29 04:56:32 +0000
committerSergey Prigogin2016-12-29 17:59:36 +0000
commit216bc162a4a40286abb2a131a62e8d65288a6050 (patch)
tree7a47ab44890547b405fb10aedeadc28252c7cf9c /lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse
parent63d3ab9cbe4ee3aa1e81cf5ac691f5256fcb0e39 (diff)
downloadorg.eclipse.cdt-216bc162a4a40286abb2a131a62e8d65288a6050.tar.gz
org.eclipse.cdt-216bc162a4a40286abb2a131a62e8d65288a6050.tar.xz
org.eclipse.cdt-216bc162a4a40286abb2a131a62e8d65288a6050.zip
Bug 509749 - Find References doesn't find a reference to a function
Diffstat (limited to 'lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse')
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/BaseExtensibleLanguage.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/BaseExtensibleLanguage.java b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/BaseExtensibleLanguage.java
index a3430d0dd7..737930f8c5 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/BaseExtensibleLanguage.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/BaseExtensibleLanguage.java
@@ -17,10 +17,6 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import lpg.lpgjavaruntime.IToken;
-import lpg.lpgjavaruntime.PrsStream;
-import lpg.lpgjavaruntime.Token;
-
import org.eclipse.cdt.core.dom.ICodeReaderFactory;
import org.eclipse.cdt.core.dom.ast.IASTCompletionNode;
import org.eclipse.cdt.core.dom.ast.IASTName;
@@ -51,6 +47,9 @@ import org.eclipse.cdt.internal.core.pdom.dom.c.PDOMCLinkageFactory;
import org.eclipse.cdt.internal.core.pdom.dom.cpp.PDOMCPPLinkageFactory;
import org.eclipse.core.runtime.CoreException;
+import lpg.lpgjavaruntime.IToken;
+import lpg.lpgjavaruntime.PrsStream;
+
/**
* Implementation of the ILanguage extension point,
@@ -269,9 +268,6 @@ public abstract class BaseExtensibleLanguage extends AbstractLanguage {
log.traceLog("^^^^^^ core parser parses " + reader.getFileLocation() + " in " + (coreFinishTime - lpr_fail_time)/1000 + " seconds");
}
}
- if(tu!=null){
- tu.setIsHeaderUnit((options & OPTION_IS_SOURCE_UNIT) == 0); // the TU is marked as either a source file or a header file
- }
if(DEBUG_PRINT_AST) {
System.out.println("Base Extensible Language AST:");

Back to the top