mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 10:16:03 +02:00
Cosmetics.
This commit is contained in:
parent
29a23cb5d2
commit
eacd718cb6
7 changed files with 17 additions and 27 deletions
|
@ -26,7 +26,6 @@ import org.eclipse.core.runtime.CoreException;
|
||||||
* @author Doug Schaefer
|
* @author Doug Schaefer
|
||||||
*/
|
*/
|
||||||
class PDOMCPPBase implements ICPPBase, ICPPInternalBase {
|
class PDOMCPPBase implements ICPPBase, ICPPInternalBase {
|
||||||
|
|
||||||
private static final int BASECLASS_SPECIFIER = 0;
|
private static final int BASECLASS_SPECIFIER = 0;
|
||||||
private static final int NEXTBASE = 4;
|
private static final int NEXTBASE = 4;
|
||||||
private static final int FLAGS = 8;
|
private static final int FLAGS = 8;
|
||||||
|
@ -43,7 +42,8 @@ class PDOMCPPBase implements ICPPBase, ICPPInternalBase {
|
||||||
this.record = record;
|
this.record = record;
|
||||||
}
|
}
|
||||||
|
|
||||||
public PDOMCPPBase(PDOMLinkage linkage, PDOMName baseClassSpec, boolean isVirtual, int visibility) throws CoreException {
|
public PDOMCPPBase(PDOMLinkage linkage, PDOMName baseClassSpec, boolean isVirtual, int visibility)
|
||||||
|
throws CoreException {
|
||||||
this.linkage = linkage;
|
this.linkage = linkage;
|
||||||
Database db = getDB();
|
Database db = getDB();
|
||||||
this.record = db.malloc(RECORD_SIZE);
|
this.record = db.malloc(RECORD_SIZE);
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Markus Schorn - initial API and implementation
|
* Markus Schorn - initial API and implementation
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.cdt.internal.core.pdom.dom.cpp;
|
package org.eclipse.cdt.internal.core.pdom.dom.cpp;
|
||||||
|
|
||||||
import org.eclipse.cdt.core.dom.ast.DOMException;
|
import org.eclipse.cdt.core.dom.ast.DOMException;
|
||||||
|
@ -21,7 +20,8 @@ import org.eclipse.core.runtime.CoreException;
|
||||||
|
|
||||||
class PDOMCPPConstructor extends PDOMCPPMethod implements ICPPConstructor {
|
class PDOMCPPConstructor extends PDOMCPPMethod implements ICPPConstructor {
|
||||||
|
|
||||||
public PDOMCPPConstructor(PDOMLinkage linkage, PDOMNode parent, ICPPConstructor method) throws CoreException, DOMException {
|
public PDOMCPPConstructor(PDOMLinkage linkage, PDOMNode parent, ICPPConstructor method)
|
||||||
|
throws CoreException, DOMException {
|
||||||
super(linkage, parent, method);
|
super(linkage, parent, method);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,19 +20,16 @@ import org.eclipse.core.runtime.CoreException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Bryan Wilkinson
|
* @author Bryan Wilkinson
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public class PDOMCPPConstructorInstance extends PDOMCPPMethodInstance implements
|
public class PDOMCPPConstructorInstance extends PDOMCPPMethodInstance implements ICPPConstructor {
|
||||||
ICPPConstructor {
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The size in bytes of a PDOMCPPConstructorInstance record in the database.
|
* The size in bytes of a PDOMCPPConstructorInstance record in the database.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("hiding")
|
@SuppressWarnings("hiding")
|
||||||
protected static final int RECORD_SIZE = PDOMCPPMethodInstance.RECORD_SIZE + 0;
|
protected static final int RECORD_SIZE = PDOMCPPMethodInstance.RECORD_SIZE + 0;
|
||||||
|
|
||||||
public PDOMCPPConstructorInstance(PDOMLinkage linkage, PDOMNode parent, ICPPMethod method, PDOMBinding instantiated)
|
public PDOMCPPConstructorInstance(PDOMLinkage linkage, PDOMNode parent, ICPPMethod method,
|
||||||
throws CoreException {
|
PDOMBinding instantiated) throws CoreException {
|
||||||
super(linkage, parent, method, instantiated);
|
super(linkage, parent, method, instantiated);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,11 +19,8 @@ import org.eclipse.core.runtime.CoreException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Bryan Wilkinson
|
* @author Bryan Wilkinson
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
class PDOMCPPConstructorSpecialization extends
|
class PDOMCPPConstructorSpecialization extends PDOMCPPMethodSpecialization implements ICPPConstructor {
|
||||||
PDOMCPPMethodSpecialization implements ICPPConstructor {
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The size in bytes of a PDOMCPPConstructorSpecialization record in the database.
|
* The size in bytes of a PDOMCPPConstructorSpecialization record in the database.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -19,10 +19,8 @@ import org.eclipse.core.runtime.CoreException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Bryan Wilkinson
|
* @author Bryan Wilkinson
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
class PDOMCPPConstructorTemplate extends PDOMCPPMethodTemplate implements
|
class PDOMCPPConstructorTemplate extends PDOMCPPMethodTemplate implements ICPPConstructor {
|
||||||
ICPPConstructor {
|
|
||||||
|
|
||||||
public PDOMCPPConstructorTemplate(PDOMCPPLinkage linkage, PDOMNode parent, ICPPConstructor method)
|
public PDOMCPPConstructorTemplate(PDOMCPPLinkage linkage, PDOMNode parent, ICPPConstructor method)
|
||||||
throws CoreException, DOMException {
|
throws CoreException, DOMException {
|
||||||
|
|
|
@ -19,11 +19,9 @@ import org.eclipse.core.runtime.CoreException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Bryan Wilkinson
|
* @author Bryan Wilkinson
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
class PDOMCPPConstructorTemplateSpecialization extends
|
class PDOMCPPConstructorTemplateSpecialization extends PDOMCPPMethodTemplateSpecialization
|
||||||
PDOMCPPMethodTemplateSpecialization implements ICPPConstructor {
|
implements ICPPConstructor {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The size in bytes of a PDOMCPPConstructorTemplateSpecialization record in the database.
|
* The size in bytes of a PDOMCPPConstructorTemplateSpecialization record in the database.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -46,8 +46,8 @@ import org.eclipse.core.runtime.CoreException;
|
||||||
* Deferred class instances collect information about an instantiation until it can be
|
* Deferred class instances collect information about an instantiation until it can be
|
||||||
* carried out.
|
* carried out.
|
||||||
*/
|
*/
|
||||||
class PDOMCPPDeferredClassInstance extends PDOMCPPSpecialization implements ICPPDeferredClassInstance, IPDOMMemberOwner, IIndexType {
|
class PDOMCPPDeferredClassInstance extends PDOMCPPSpecialization
|
||||||
|
implements ICPPDeferredClassInstance, IPDOMMemberOwner, IIndexType {
|
||||||
private static final int MEMBERLIST = PDOMCPPSpecialization.RECORD_SIZE + 0;
|
private static final int MEMBERLIST = PDOMCPPSpecialization.RECORD_SIZE + 0;
|
||||||
private static final int ARGUMENTS = PDOMCPPSpecialization.RECORD_SIZE + 4;
|
private static final int ARGUMENTS = PDOMCPPSpecialization.RECORD_SIZE + 4;
|
||||||
/**
|
/**
|
||||||
|
@ -58,8 +58,8 @@ class PDOMCPPDeferredClassInstance extends PDOMCPPSpecialization implements ICPP
|
||||||
|
|
||||||
private ICPPScope unknownScope;
|
private ICPPScope unknownScope;
|
||||||
|
|
||||||
public PDOMCPPDeferredClassInstance(PDOMLinkage linkage, PDOMNode parent, ICPPDeferredClassInstance classType, PDOMBinding instantiated)
|
public PDOMCPPDeferredClassInstance(PDOMLinkage linkage, PDOMNode parent,
|
||||||
throws CoreException {
|
ICPPDeferredClassInstance classType, PDOMBinding instantiated) throws CoreException {
|
||||||
super(linkage, parent, classType, instantiated);
|
super(linkage, parent, classType, instantiated);
|
||||||
|
|
||||||
final ICPPTemplateArgument[] args= classType.getTemplateArguments();
|
final ICPPTemplateArgument[] args= classType.getTemplateArguments();
|
||||||
|
|
Loading…
Add table
Reference in a new issue