1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 378317. Faster search for unresolved includes.

This commit is contained in:
Sergey Prigogin 2012-05-09 18:08:17 -07:00
parent ae606fe28b
commit bcf226a7f2

View file

@ -7,6 +7,7 @@
*
* Contributors:
* Markus Schorn - initial API and implementation
* Sergey Prigogin (Google)
*******************************************************************************/
package org.eclipse.cdt.internal.ui.search;
@ -37,7 +38,7 @@ public class CSearchUnresolvedIncludesQuery extends CSearchQuery {
@Override
protected IStatus runWithIndex(final IIndex index, IProgressMonitor monitor) {
try {
for (IIndexFile file : index.getAllFiles()) {
for (IIndexFile file : index.getFilesWithUnresolvedIncludes()) {
for (IIndexInclude include : file.getIncludes()) {
if (include.isActive() && !include.isResolved()) {
result.addMatch(new CSearchMatch(new ProblemSearchElement(