mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 03:45:35 +02:00
Cosmetics.
This commit is contained in:
parent
d722e6d367
commit
d2b9c42395
2 changed files with 24 additions and 26 deletions
|
@ -6,7 +6,7 @@
|
|||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* Andrew Ferguson (Symbian) - Initial implementation
|
||||
* Andrew Ferguson (Symbian) - Initial implementation
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.internal.core.index.composite;
|
||||
|
||||
|
@ -22,16 +22,17 @@ public interface ICompositesFactory {
|
|||
public IIndexScope getCompositeScope(IIndexScope rscope);
|
||||
|
||||
/**
|
||||
* Returns a composite (in the sense of potentially spanning multiple index fragments - i.e. not to be confused
|
||||
* with ICompositeType) type for the specified type.
|
||||
* Returns a composite (in the sense of potentially spanning multiple index fragments -
|
||||
* i.e. not to be confused with ICompositeType) type for the specified type.
|
||||
*/
|
||||
public IType getCompositeType(IType rtype);
|
||||
|
||||
/**
|
||||
* Returns a composite (index context carrying) binding for the specified binding. It does not
|
||||
* matter which fragment the specified binding comes from
|
||||
* @param binding a binding that will be used when searching for information to return from the composite
|
||||
* binding methods
|
||||
* matter which fragment the specified binding comes from.
|
||||
*
|
||||
* @param binding a binding that will be used when searching for information to return from
|
||||
* the composite binding methods
|
||||
* @return a composite (index context carrying) binding for the specified binding
|
||||
*/
|
||||
public IIndexBinding getCompositeBinding(IIndexFragmentBinding binding);
|
||||
|
|
|
@ -6,13 +6,10 @@
|
|||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* Markus Schorn - initial API and implementation
|
||||
* Markus Schorn - initial API and implementation
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.internal.core.pdom.dom;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.eclipse.cdt.core.CCorePlugin;
|
||||
import org.eclipse.cdt.core.index.IIndexFile;
|
||||
import org.eclipse.cdt.core.index.IIndexMacro;
|
||||
|
@ -24,13 +21,16 @@ import org.eclipse.cdt.internal.core.index.IIndexScope;
|
|||
import org.eclipse.cdt.internal.core.pdom.db.Database;
|
||||
import org.eclipse.core.runtime.CoreException;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* A container collecting definitions and references for macros.
|
||||
* @since 5.0
|
||||
*/
|
||||
public class PDOMMacroContainer extends PDOMNamedNode implements IIndexMacroContainer, IPDOMBinding {
|
||||
private static final int FIRST_DEF_OFFSET = PDOMNamedNode.RECORD_SIZE + 0; // size 4
|
||||
private static final int FIRST_REF_OFFSET = PDOMNamedNode.RECORD_SIZE + 4; // size 4
|
||||
private static final int FIRST_DEF_OFFSET = PDOMNamedNode.RECORD_SIZE + 0; // size 4
|
||||
private static final int FIRST_REF_OFFSET = PDOMNamedNode.RECORD_SIZE + 4; // size 4
|
||||
|
||||
@SuppressWarnings("hiding")
|
||||
protected static final int RECORD_SIZE = PDOMNamedNode.RECORD_SIZE + 8;
|
||||
|
@ -119,9 +119,6 @@ public class PDOMMacroContainer extends PDOMNamedNode implements IIndexMacroCont
|
|||
return IIndexBindingConstants.MACRO_CONTAINER;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.internal.core.index.IIndexFragmentBinding#getFragment()
|
||||
*/
|
||||
@Override
|
||||
public IIndexFragment getFragment() {
|
||||
return getPDOM();
|
||||
|
|
Loading…
Add table
Reference in a new issue