Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] API changes

As part of addressing issue https://bugs.eclipse.org/bugs/show_bug.cgi?id=378317 in commit http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=ae606fe28bd730d640f6ec722da99628e813984d I've introduced the following API changes:

IIndexManager:
/**
* Constant for requesting an update of translation units that had unresolved includes.
* @since 5.4
*/
public final static int UPDATE_UNRESOLVED_INCLUDES= 0x80;

IIndex:
/**
* Returns an array of files that were indexed with I/O errors.
* @noreference This method is not intended to be referenced by clients.
* @since 5.4
*/
public IIndexFile[] getDefectiveFiles() throws CoreException;

/**
* Returns an array of files containg unresolved includes.
* @noreference This method is not intended to be referenced by clients.
* @since 5.4
*/
public IIndexFile[] getFilesWithUnresolvedIncludes() throws CoreException;

IIndexFile:
/** * Time when the file was read during indexing. Corresponds to the start of reading. * @return time of indexing in milliseconds since epoch * @since 5.4 */ long getSourceReadTime() throws CoreException;

This information may also be used for bug 171834.

IASTPreprocessorIncludeStatement:
/**
* Returns time when the included file was read. Corresponds to the start of reading.    
* @return time before reading started in milliseconds since epoch
* @since 5.4
*/
public long getIncludedFileReadTime(); 

The change also introduced a new menu command: Index > Re-resolve Unresolved Includes

-sergey


Back to the top