mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Cosmetics.
This commit is contained in:
parent
887ec0b8a1
commit
9e9c380798
4 changed files with 7 additions and 10 deletions
|
@ -6,19 +6,18 @@
|
|||
* 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.index;
|
||||
|
||||
import org.eclipse.core.runtime.CoreException;
|
||||
|
||||
public interface IIndexFragmentFileSet {
|
||||
|
||||
/**
|
||||
* Returns whether the file-set contains the file of the local binding.
|
||||
* @throws CoreException
|
||||
*/
|
||||
boolean containsFileOfLocalBinding(IIndexFragmentBinding fb) throws CoreException;
|
||||
boolean containsFileOfLocalBinding(IIndexFragmentBinding binding) throws CoreException;
|
||||
|
||||
/**
|
||||
* Adds the fragment file to the file-set.
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* 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.index;
|
||||
|
||||
|
@ -150,7 +150,7 @@ public class IndexFileSet implements IIndexFileSet {
|
|||
int j= ok.nextSetBit(0);
|
||||
for (int i = 0; i < result.length; i++) {
|
||||
result[i]= bindings[j];
|
||||
j= ok.nextSetBit(j+1);
|
||||
j= ok.nextSetBit(j + 1);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -12,7 +12,6 @@ package org.eclipse.cdt.internal.core.parser.scanner;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* Represents the include search path
|
||||
*/
|
||||
|
@ -20,7 +19,6 @@ public final class IncludeSearchPath {
|
|||
private final boolean fInhibitUseOfCurrentFileDirectory;
|
||||
private final IncludeSearchPathElement[] fElements;
|
||||
|
||||
|
||||
IncludeSearchPath(List<IncludeSearchPathElement> elements, boolean inhibitUseOfCurrentFileDirectory) {
|
||||
fElements= elements.toArray(new IncludeSearchPathElement[elements.size()]);
|
||||
fInhibitUseOfCurrentFileDirectory= inhibitUseOfCurrentFileDirectory;
|
||||
|
|
|
@ -195,7 +195,7 @@ public class PDOMUpdateTask implements IPDOMIndexerTask {
|
|||
return tu;
|
||||
}
|
||||
|
||||
private boolean canResolveUnresolvedInclude(IIndexFile file, IScannerInfo scannerInfo,
|
||||
private static boolean canResolveUnresolvedInclude(IIndexFile file, IScannerInfo scannerInfo,
|
||||
ProjectIndexerIncludeResolutionHeuristics includeResolutionHeuristics) {
|
||||
try {
|
||||
String filePath = IndexLocationFactory.getAbsolutePath(file.getLocation()).toOSString();
|
||||
|
@ -214,7 +214,7 @@ public class PDOMUpdateTask implements IPDOMIndexerTask {
|
|||
return false;
|
||||
}
|
||||
|
||||
private boolean canResolveInclude(IIndexInclude include, String currentFile, long timestamp,
|
||||
private static boolean canResolveInclude(IIndexInclude include, String currentFile, long timestamp,
|
||||
IncludeSearchPath includeSearchPath,
|
||||
ProjectIndexerIncludeResolutionHeuristics includeResolutionHeuristics) throws CoreException {
|
||||
String includeName = include.getFullName();
|
||||
|
@ -259,7 +259,7 @@ public class PDOMUpdateTask implements IPDOMIndexerTask {
|
|||
/**
|
||||
* Returns true if the file exists and is not older than the given timestamp.
|
||||
*/
|
||||
private boolean fileIsNotOlderThanTimestamp(String filename, long timestamp) {
|
||||
private static boolean fileIsNotOlderThanTimestamp(String filename, long timestamp) {
|
||||
// We are subtracting 1 second from the timestamp to account for limited precision
|
||||
// of File.lastModified() method and possible skew between clocks on a multi-CPU
|
||||
// system. This may produce false positives, but they are pretty harmless.
|
||||
|
|
Loading…
Add table
Reference in a new issue