mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 18:56:02 +02:00
Cosmetics
Change-Id: I83fb4c257059beaef16fa35512766196c5fc4dcb
This commit is contained in:
parent
87ada6a98b
commit
4e01baa83f
1 changed files with 4 additions and 3 deletions
|
@ -31,7 +31,7 @@ import org.eclipse.cdt.internal.core.pdom.dom.c.PDOMCAnnotation;
|
||||||
import org.eclipse.core.runtime.CoreException;
|
import org.eclipse.core.runtime.CoreException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Binding for a c++ variable in the index, serves as a base class for fields.
|
* Binding for a C++ variable in the index, serves as a base class for fields.
|
||||||
*/
|
*/
|
||||||
class PDOMCPPVariable extends PDOMCPPBinding implements ICPPVariable {
|
class PDOMCPPVariable extends PDOMCPPBinding implements ICPPVariable {
|
||||||
private static final int TYPE_OFFSET = PDOMCPPBinding.RECORD_SIZE;
|
private static final int TYPE_OFFSET = PDOMCPPBinding.RECORD_SIZE;
|
||||||
|
@ -40,7 +40,8 @@ class PDOMCPPVariable extends PDOMCPPBinding implements ICPPVariable {
|
||||||
@SuppressWarnings("hiding")
|
@SuppressWarnings("hiding")
|
||||||
protected static final int RECORD_SIZE = ANNOTATIONS + 1;
|
protected static final int RECORD_SIZE = ANNOTATIONS + 1;
|
||||||
|
|
||||||
public PDOMCPPVariable(PDOMLinkage linkage, PDOMNode parent, IVariable variable, boolean setTypeAndValue) throws CoreException {
|
public PDOMCPPVariable(PDOMLinkage linkage, PDOMNode parent, IVariable variable, boolean setTypeAndValue)
|
||||||
|
throws CoreException {
|
||||||
super(linkage, parent, variable.getNameCharArray());
|
super(linkage, parent, variable.getNameCharArray());
|
||||||
|
|
||||||
// Find the type record
|
// Find the type record
|
||||||
|
@ -69,7 +70,7 @@ class PDOMCPPVariable extends PDOMCPPBinding implements ICPPVariable {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void setType(final PDOMLinkage linkage, IType newType) throws CoreException {
|
protected void setType(final PDOMLinkage linkage, IType newType) throws CoreException {
|
||||||
linkage.storeType(record+TYPE_OFFSET, newType);
|
linkage.storeType(record + TYPE_OFFSET, newType);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected byte encodeFlags(IVariable variable) {
|
protected byte encodeFlags(IVariable variable) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue