diff options
author | Nathan Ridge | 2017-06-11 19:06:25 +0000 |
---|---|---|
committer | Nathan Ridge | 2017-09-25 16:51:22 +0000 |
commit | 64709c980ddb83dde1ecef0794b976b89cdf7550 (patch) | |
tree | 22e06bd4953dc40089f6e90f837d16f4a2ea3e33 /core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPFunction.java | |
parent | 9869cbc9bacf716995a616434f9d635928dcca01 (diff) | |
download | org.eclipse.cdt-64709c980ddb83dde1ecef0794b976b89cdf7550.tar.gz org.eclipse.cdt-64709c980ddb83dde1ecef0794b976b89cdf7550.tar.xz org.eclipse.cdt-64709c980ddb83dde1ecef0794b976b89cdf7550.zip |
Bug 513105 - Store the current lookup point in a thread-local static stack rather than passing it around everywhere
Change-Id: I3da7326d1ce6bede8d4787d98f38fb2064288338
Diffstat (limited to 'core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPFunction.java')
-rw-r--r-- | core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPFunction.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPFunction.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPFunction.java index 9068cb45d9d..5b8307b0aab 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPFunction.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPFunction.java @@ -15,7 +15,6 @@ package org.eclipse.cdt.internal.core.pdom.dom.cpp; import org.eclipse.cdt.core.CCorePlugin; import org.eclipse.cdt.core.dom.ast.DOMException; -import org.eclipse.cdt.core.dom.ast.IASTNode; import org.eclipse.cdt.core.dom.ast.IBinding; import org.eclipse.cdt.core.dom.ast.IScope; import org.eclipse.cdt.core.dom.ast.ISemanticProblem; @@ -93,7 +92,7 @@ class PDOMCPPFunction extends PDOMCPPBinding implements ICPPFunction, IPDOMOverl private ICPPFunctionType fDeclaredType; public PDOMCPPFunction(PDOMCPPLinkage linkage, PDOMNode parent, ICPPFunction function, - boolean setTypes, IASTNode point) throws CoreException, DOMException { + boolean setTypes) throws CoreException, DOMException { super(linkage, parent, function.getNameCharArray()); Database db = getDB(); Integer sigHash = IndexCPPSignatureUtil.getSignatureHash(function); @@ -101,7 +100,7 @@ class PDOMCPPFunction extends PDOMCPPBinding implements ICPPFunction, IPDOMOverl db.putShort(record + ANNOTATION, getAnnotations(function)); db.putShort(record + REQUIRED_ARG_COUNT, (short) function.getRequiredArgumentCount()); if (setTypes) { - linkage.new ConfigureFunction(function, this, point); + linkage.new ConfigureFunction(function, this); } } @@ -123,7 +122,7 @@ class PDOMCPPFunction extends PDOMCPPBinding implements ICPPFunction, IPDOMOverl } @Override - public void update(final PDOMLinkage linkage, IBinding newBinding, IASTNode point) throws CoreException { + public void update(final PDOMLinkage linkage, IBinding newBinding) throws CoreException { if (!(newBinding instanceof ICPPFunction)) return; @@ -180,7 +179,7 @@ class PDOMCPPFunction extends PDOMCPPBinding implements ICPPFunction, IPDOMOverl if (oldRec != 0) { PDOMCPPTypeList.clearTypes(this, oldRec); } - linkage.storeExecution(record + FUNCTION_BODY, CPPFunction.getFunctionBodyExecution(func, point)); + linkage.storeExecution(record + FUNCTION_BODY, CPPFunction.getFunctionBodyExecution(func)); } private void storeExceptionSpec(IType[] exceptionSpec) throws CoreException { @@ -429,7 +428,7 @@ class PDOMCPPFunction extends PDOMCPPBinding implements ICPPFunction, IPDOMOverl } @Override - public ICPPExecution getFunctionBodyExecution(IASTNode point) { + public ICPPExecution getFunctionBodyExecution() { if (!isConstexpr()) return null; |