mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Code formatting.
This commit is contained in:
parent
d9a42eb002
commit
4f541baeb7
2 changed files with 5 additions and 6 deletions
|
@ -42,7 +42,6 @@ import org.eclipse.core.runtime.CoreException;
|
||||||
* @author Bryan Wilkinson
|
* @author Bryan Wilkinson
|
||||||
*/
|
*/
|
||||||
public class PDOMCPPClassTemplate extends PDOMCPPClassType implements ICPPClassTemplate, ICPPInstanceCache {
|
public class PDOMCPPClassTemplate extends PDOMCPPClassType implements ICPPClassTemplate, ICPPInstanceCache {
|
||||||
|
|
||||||
private static final int PARAMETERS = PDOMCPPClassType.RECORD_SIZE + 0;
|
private static final int PARAMETERS = PDOMCPPClassType.RECORD_SIZE + 0;
|
||||||
private static final int FIRST_PARTIAL = PDOMCPPClassType.RECORD_SIZE + 4;
|
private static final int FIRST_PARTIAL = PDOMCPPClassType.RECORD_SIZE + 4;
|
||||||
|
|
||||||
|
@ -131,14 +130,14 @@ public class PDOMCPPClassTemplate extends PDOMCPPClassType implements ICPPClassT
|
||||||
return new ICPPClassTemplatePartialSpecialization[0];
|
return new ICPPClassTemplatePartialSpecialization[0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void accept(IPDOMVisitor visitor) throws CoreException {
|
public void accept(IPDOMVisitor visitor) throws CoreException {
|
||||||
super.accept(visitor);
|
super.accept(visitor);
|
||||||
PDOMNodeLinkedList list = new PDOMNodeLinkedList(pdom, record + PARAMETERS, getLinkageImpl());
|
PDOMNodeLinkedList list = new PDOMNodeLinkedList(pdom, record + PARAMETERS, getLinkageImpl());
|
||||||
list.accept(visitor);
|
list.accept(visitor);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addChild(PDOMNode member) throws CoreException {
|
public void addChild(PDOMNode member) throws CoreException {
|
||||||
if (member instanceof ICPPTemplateParameter) {
|
if (member instanceof ICPPTemplateParameter) {
|
||||||
|
@ -148,7 +147,7 @@ public class PDOMCPPClassTemplate extends PDOMCPPClassType implements ICPPClassT
|
||||||
super.addChild(member);
|
super.addChild(member);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isSameType(IType type) {
|
public boolean isSameType(IType type) {
|
||||||
if (type instanceof ITypedef) {
|
if (type instanceof ITypedef) {
|
||||||
|
|
|
@ -47,8 +47,8 @@ class PDOMCPPFunctionTemplate extends PDOMCPPFunction
|
||||||
@SuppressWarnings("hiding")
|
@SuppressWarnings("hiding")
|
||||||
protected static final int RECORD_SIZE = PDOMCPPFunction.RECORD_SIZE + 4;
|
protected static final int RECORD_SIZE = PDOMCPPFunction.RECORD_SIZE + 4;
|
||||||
|
|
||||||
public PDOMCPPFunctionTemplate(PDOM pdom, PDOMNode parent,
|
public PDOMCPPFunctionTemplate(PDOM pdom, PDOMNode parent, ICPPFunctionTemplate template)
|
||||||
ICPPFunctionTemplate template) throws CoreException {
|
throws CoreException {
|
||||||
super(pdom, parent, (ICPPFunction) template, false);
|
super(pdom, parent, (ICPPFunction) template, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue