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:
parent
ae606fe28b
commit
bcf226a7f2
1 changed files with 2 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue