mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 10:16:03 +02:00
Cosmetics.
Change-Id: Ib2b290d1a41a6584b386ffd44cd2b779ba5a20ea
This commit is contained in:
parent
93fa9c00a6
commit
bb79c66743
5 changed files with 9 additions and 13 deletions
|
@ -48,7 +48,7 @@ import junit.framework.Test;
|
|||
* Tests the behavior of the IIndex API when dealing with multiple projects
|
||||
*/
|
||||
public class IndexCompositeTests extends BaseTestCase {
|
||||
Set<IProject> createdProjects = new HashSet<IProject>();
|
||||
Set<IProject> createdProjects = new HashSet<>();
|
||||
|
||||
/*
|
||||
* Convenience class for setting up projects.
|
||||
|
@ -56,8 +56,8 @@ public class IndexCompositeTests extends BaseTestCase {
|
|||
private class ProjectBuilder {
|
||||
private final String name;
|
||||
private final boolean cpp;
|
||||
private List<IProject> dependencies = new ArrayList<IProject>();
|
||||
private Map<String, String> path2content = new HashMap<String, String>();
|
||||
private List<IProject> dependencies = new ArrayList<>();
|
||||
private Map<String, String> path2content = new HashMap<>();
|
||||
|
||||
ProjectBuilder(String name, boolean cpp) {
|
||||
this.name = name;
|
||||
|
|
|
@ -16,7 +16,6 @@ package org.eclipse.cdt.internal.core.util;
|
|||
* @since 5.0
|
||||
*/
|
||||
public interface ICancelable {
|
||||
|
||||
/**
|
||||
* Marks the receiver cancelled.
|
||||
*/
|
||||
|
|
|
@ -16,7 +16,7 @@ import org.eclipse.core.runtime.CoreException;
|
|||
* The PDOMASTProcessor extension point allows contributors to the org.eclipse.cdt.core.PDOMASTProcessor
|
||||
* extension-point to store their own information in the persisted index. The intent is for
|
||||
* contributors to define their own ILinkage to avoid managing conflicts with the storage format
|
||||
* for existing Linkages.
|
||||
* for existing linkages.
|
||||
* <p>
|
||||
* NOTE: The existing org.eclipse.cdt.core.language extension-point, allows new pdomLinkageFactories
|
||||
* to be added. However, the {@link IPDOMLinkageFactory} interface which must be implemented is
|
||||
|
@ -27,9 +27,9 @@ import org.eclipse.core.runtime.CoreException;
|
|||
*/
|
||||
public interface IPDOMASTProcessor {
|
||||
/**
|
||||
* Process the input ast by adding significant symbols to the given output map. Return the
|
||||
* linkage id that should be used to store the result, or {@link ILinkage#NO_LINKAGE_ID} if
|
||||
* the AST contained nothing of significance to this processor.
|
||||
* Processes the input AST by adding significant symbols to the given output map. Returns the linkage id
|
||||
* that should be used to store the result, or {@link ILinkage#NO_LINKAGE_ID} if the AST contained nothing
|
||||
* of significance to this processor.
|
||||
*
|
||||
* @param ast The input AST to be processed.
|
||||
* @param symbols The output map of significant symbols.
|
||||
|
|
|
@ -12,8 +12,6 @@ package org.eclipse.cdt.core.parser;
|
|||
|
||||
/**
|
||||
* @author jcamelon
|
||||
*
|
||||
*/
|
||||
public class DefaultLogService extends AbstractParserLogService
|
||||
{
|
||||
public class DefaultLogService extends AbstractParserLogService {
|
||||
}
|
||||
|
|
|
@ -80,8 +80,7 @@ public class WritableCIndex extends CIndex implements IWritableIndex {
|
|||
|
||||
for (IncludeInformation include : includes) {
|
||||
if (include.fLocation != null) {
|
||||
include.fTargetFile= addFile(linkageID, include.fLocation,
|
||||
include.fSignificantMacros);
|
||||
include.fTargetFile= addFile(linkageID, include.fLocation, include.fSignificantMacros);
|
||||
}
|
||||
}
|
||||
getWritableFragment().addFileContent(file, includes, macros, names, resolver, lock);
|
||||
|
|
Loading…
Add table
Reference in a new issue