mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Bug 316747: Fix mistyped 'getTemplateParameter'.
This commit is contained in:
parent
222046596e
commit
66d10bd31a
4 changed files with 21 additions and 9 deletions
|
@ -2,7 +2,7 @@ Manifest-Version: 1.0
|
||||||
Bundle-ManifestVersion: 2
|
Bundle-ManifestVersion: 2
|
||||||
Bundle-Name: %pluginName
|
Bundle-Name: %pluginName
|
||||||
Bundle-SymbolicName: org.eclipse.cdt.core; singleton:=true
|
Bundle-SymbolicName: org.eclipse.cdt.core; singleton:=true
|
||||||
Bundle-Version: 5.2.100.qualifier
|
Bundle-Version: 5.3.0.qualifier
|
||||||
Bundle-Activator: org.eclipse.cdt.core.CCorePlugin
|
Bundle-Activator: org.eclipse.cdt.core.CCorePlugin
|
||||||
Bundle-Vendor: %providerName
|
Bundle-Vendor: %providerName
|
||||||
Bundle-Localization: plugin
|
Bundle-Localization: plugin
|
||||||
|
|
|
@ -67,8 +67,9 @@ public interface ICPPASTTemplatedTypeTemplateParameter extends ICPPASTTemplatePa
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a nested template parameter.
|
* Add a nested template parameter.
|
||||||
|
* @since 5.3
|
||||||
*/
|
*/
|
||||||
public void addTemplateParamter(ICPPASTTemplateParameter parm);
|
public void addTemplateParameter(ICPPASTTemplateParameter parm);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set whether this template template parameter is a parameter pack.
|
* Set whether this template template parameter is a parameter pack.
|
||||||
|
@ -85,4 +86,10 @@ public interface ICPPASTTemplatedTypeTemplateParameter extends ICPPASTTemplatePa
|
||||||
* Set default value for the template template parameter.
|
* Set default value for the template template parameter.
|
||||||
*/
|
*/
|
||||||
public void setDefaultValue(IASTExpression expression);
|
public void setDefaultValue(IASTExpression expression);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use {@link #addTemplateParameter(ICPPASTTemplateParameter)};
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
|
public void addTemplateParamter(ICPPASTTemplateParameter parm);
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,7 +47,7 @@ public class CPPASTTemplatedTypeTemplateParameter extends ASTNode implements
|
||||||
copy.setDefaultValue(fDefaultValue == null ? null : fDefaultValue.copy());
|
copy.setDefaultValue(fDefaultValue == null ? null : fDefaultValue.copy());
|
||||||
copy.fIsParameterPack= fIsParameterPack;
|
copy.fIsParameterPack= fIsParameterPack;
|
||||||
for(ICPPASTTemplateParameter param : getTemplateParameters())
|
for(ICPPASTTemplateParameter param : getTemplateParameters())
|
||||||
copy.addTemplateParamter(param == null ? null : param.copy());
|
copy.addTemplateParameter(param == null ? null : param.copy());
|
||||||
copy.setOffsetAndLength(this);
|
copy.setOffsetAndLength(this);
|
||||||
return copy;
|
return copy;
|
||||||
}
|
}
|
||||||
|
@ -59,13 +59,18 @@ public class CPPASTTemplatedTypeTemplateParameter extends ASTNode implements
|
||||||
return fNestedParameters;
|
return fNestedParameters;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addTemplateParamter(ICPPASTTemplateParameter parm) {
|
@Deprecated
|
||||||
|
public void addTemplateParamter(ICPPASTTemplateParameter param) {
|
||||||
|
addTemplateParameter(param);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void addTemplateParameter(ICPPASTTemplateParameter param) {
|
||||||
assertNotFrozen();
|
assertNotFrozen();
|
||||||
if (parm != null) {
|
if (param != null) {
|
||||||
fNestedParameters = (ICPPASTTemplateParameter[]) ArrayUtil.append(ICPPASTTemplateParameter.class,
|
fNestedParameters = (ICPPASTTemplateParameter[]) ArrayUtil.append(ICPPASTTemplateParameter.class,
|
||||||
fNestedParameters, parm);
|
fNestedParameters, param);
|
||||||
parm.setParent(this);
|
param.setParent(this);
|
||||||
parm.setPropertyInParent(PARAMETER);
|
param.setPropertyInParent(PARAMETER);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1736,7 +1736,7 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
|
||||||
|
|
||||||
for (int i = 0; i < tparList.size(); ++i) {
|
for (int i = 0; i < tparList.size(); ++i) {
|
||||||
ICPPASTTemplateParameter p = tparList.get(i);
|
ICPPASTTemplateParameter p = tparList.get(i);
|
||||||
tpar.addTemplateParamter(p);
|
tpar.addTemplateParameter(p);
|
||||||
}
|
}
|
||||||
returnValue.add(tpar);
|
returnValue.add(tpar);
|
||||||
} else if (lt1 == IToken.tCOMMA) {
|
} else if (lt1 == IToken.tCOMMA) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue