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