mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +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
|
||||
*/
|
||||
class PDOMCPPBase implements ICPPBase, ICPPInternalBase {
|
||||
|
||||
private static final int BASECLASS_SPECIFIER = 0;
|
||||
private static final int NEXTBASE = 4;
|
||||
private static final int FLAGS = 8;
|
||||
|
@ -43,7 +42,8 @@ class PDOMCPPBase implements ICPPBase, ICPPInternalBase {
|
|||
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;
|
||||
Database db = getDB();
|
||||
this.record = db.malloc(RECORD_SIZE);
|
||||
|
@ -97,8 +97,8 @@ class PDOMCPPBase implements ICPPBase, ICPPInternalBase {
|
|||
PDOMName name= getBaseClassSpecifierName();
|
||||
if (name != null) {
|
||||
PDOMBinding b = name.getBinding();
|
||||
while( b instanceof PDOMCPPTypedef && ((PDOMCPPTypedef)b).getType() instanceof PDOMBinding ){
|
||||
b = (PDOMBinding) ((PDOMCPPTypedef)b).getType();
|
||||
while (b instanceof PDOMCPPTypedef && ((PDOMCPPTypedef) b).getType() instanceof PDOMBinding) {
|
||||
b = (PDOMBinding) ((PDOMCPPTypedef) b).getType();
|
||||
}
|
||||
return fCachedBaseClass= b;
|
||||
}
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
* Contributors:
|
||||
* Markus Schorn - initial API and implementation
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.cdt.internal.core.pdom.dom.cpp;
|
||||
|
||||
import org.eclipse.cdt.core.dom.ast.DOMException;
|
||||
|
@ -21,7 +20,8 @@ import org.eclipse.core.runtime.CoreException;
|
|||
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
|
@ -20,19 +20,16 @@ import org.eclipse.core.runtime.CoreException;
|
|||
|
||||
/**
|
||||
* @author Bryan Wilkinson
|
||||
*
|
||||
*/
|
||||
public class PDOMCPPConstructorInstance extends PDOMCPPMethodInstance implements
|
||||
ICPPConstructor {
|
||||
|
||||
public class PDOMCPPConstructorInstance extends PDOMCPPMethodInstance implements ICPPConstructor {
|
||||
/**
|
||||
* The size in bytes of a PDOMCPPConstructorInstance record in the database.
|
||||
*/
|
||||
@SuppressWarnings("hiding")
|
||||
protected static final int RECORD_SIZE = PDOMCPPMethodInstance.RECORD_SIZE + 0;
|
||||
|
||||
public PDOMCPPConstructorInstance(PDOMLinkage linkage, PDOMNode parent, ICPPMethod method, PDOMBinding instantiated)
|
||||
throws CoreException {
|
||||
public PDOMCPPConstructorInstance(PDOMLinkage linkage, PDOMNode parent, ICPPMethod method,
|
||||
PDOMBinding instantiated) throws CoreException {
|
||||
super(linkage, parent, method, instantiated);
|
||||
}
|
||||
|
||||
|
|
|
@ -19,11 +19,8 @@ import org.eclipse.core.runtime.CoreException;
|
|||
|
||||
/**
|
||||
* @author Bryan Wilkinson
|
||||
*
|
||||
*/
|
||||
class PDOMCPPConstructorSpecialization extends
|
||||
PDOMCPPMethodSpecialization implements ICPPConstructor {
|
||||
|
||||
class PDOMCPPConstructorSpecialization extends PDOMCPPMethodSpecialization implements ICPPConstructor {
|
||||
/**
|
||||
* The size in bytes of a PDOMCPPConstructorSpecialization record in the database.
|
||||
*/
|
||||
|
|
|
@ -19,10 +19,8 @@ import org.eclipse.core.runtime.CoreException;
|
|||
|
||||
/**
|
||||
* @author Bryan Wilkinson
|
||||
*
|
||||
*/
|
||||
class PDOMCPPConstructorTemplate extends PDOMCPPMethodTemplate implements
|
||||
ICPPConstructor {
|
||||
class PDOMCPPConstructorTemplate extends PDOMCPPMethodTemplate implements ICPPConstructor {
|
||||
|
||||
public PDOMCPPConstructorTemplate(PDOMCPPLinkage linkage, PDOMNode parent, ICPPConstructor method)
|
||||
throws CoreException, DOMException {
|
||||
|
|
|
@ -19,11 +19,9 @@ import org.eclipse.core.runtime.CoreException;
|
|||
|
||||
/**
|
||||
* @author Bryan Wilkinson
|
||||
*
|
||||
*/
|
||||
class PDOMCPPConstructorTemplateSpecialization extends
|
||||
PDOMCPPMethodTemplateSpecialization implements ICPPConstructor {
|
||||
|
||||
class PDOMCPPConstructorTemplateSpecialization extends PDOMCPPMethodTemplateSpecialization
|
||||
implements ICPPConstructor {
|
||||
/**
|
||||
* 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
|
||||
* 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 ARGUMENTS = PDOMCPPSpecialization.RECORD_SIZE + 4;
|
||||
/**
|
||||
|
@ -58,8 +58,8 @@ class PDOMCPPDeferredClassInstance extends PDOMCPPSpecialization implements ICPP
|
|||
|
||||
private ICPPScope unknownScope;
|
||||
|
||||
public PDOMCPPDeferredClassInstance(PDOMLinkage linkage, PDOMNode parent, ICPPDeferredClassInstance classType, PDOMBinding instantiated)
|
||||
throws CoreException {
|
||||
public PDOMCPPDeferredClassInstance(PDOMLinkage linkage, PDOMNode parent,
|
||||
ICPPDeferredClassInstance classType, PDOMBinding instantiated) throws CoreException {
|
||||
super(linkage, parent, classType, instantiated);
|
||||
|
||||
final ICPPTemplateArgument[] args= classType.getTemplateArguments();
|
||||
|
|
Loading…
Add table
Reference in a new issue