mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
Fixes getIncludeFileEntries(IProject) for perFileScannerDiscovery.
This commit is contained in:
parent
e1a1a23783
commit
b608f3ec6b
1 changed files with 7 additions and 4 deletions
|
@ -8,6 +8,7 @@
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* QNX Software Systems - Initial API and implementation
|
* QNX Software Systems - Initial API and implementation
|
||||||
* Anton Leherbauer (Wind River Systems)
|
* Anton Leherbauer (Wind River Systems)
|
||||||
|
* Markus Schorn (Wind River Systems)
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.internal.core.model;
|
package org.eclipse.cdt.internal.core.model;
|
||||||
|
|
||||||
|
@ -180,8 +181,9 @@ public class PathEntryManager implements IPathEntryStoreListener, IElementChange
|
||||||
List entryList = new ArrayList();
|
List entryList = new ArrayList();
|
||||||
ICProject cproject = celement.getCProject();
|
ICProject cproject = celement.getCProject();
|
||||||
ArrayList resolvedListEntries = getResolvedPathEntries(cproject, false);
|
ArrayList resolvedListEntries = getResolvedPathEntries(cproject, false);
|
||||||
for (int i = 0; i < resolvedListEntries.size(); ++i) {
|
IPathEntry[] pathEntries= getCachedResolvedPathEntries(resolvedListEntries, cproject);
|
||||||
IPathEntry entry = (IPathEntry)resolvedListEntries.get(i);
|
for (int i = 0; i < pathEntries.length; ++i) {
|
||||||
|
IPathEntry entry = pathEntries[i];
|
||||||
if ((entry.getEntryKind() & IPathEntry.CDT_INCLUDE_FILE) != 0) {
|
if ((entry.getEntryKind() & IPathEntry.CDT_INCLUDE_FILE) != 0) {
|
||||||
entryList.add(entry);
|
entryList.add(entry);
|
||||||
}
|
}
|
||||||
|
@ -208,8 +210,9 @@ public class PathEntryManager implements IPathEntryStoreListener, IElementChange
|
||||||
List entryList = new ArrayList();
|
List entryList = new ArrayList();
|
||||||
ICProject cproject = celement.getCProject();
|
ICProject cproject = celement.getCProject();
|
||||||
ArrayList resolvedListEntries = getResolvedPathEntries(cproject, false);
|
ArrayList resolvedListEntries = getResolvedPathEntries(cproject, false);
|
||||||
for (int i = 0; i < resolvedListEntries.size(); ++i) {
|
IPathEntry[] pathEntries= getCachedResolvedPathEntries(resolvedListEntries, cproject);
|
||||||
IPathEntry entry = (IPathEntry)resolvedListEntries.get(i);
|
for (int i = 0; i < pathEntries.length; ++i) {
|
||||||
|
IPathEntry entry = pathEntries[i];
|
||||||
if ((entry.getEntryKind() & IPathEntry.CDT_INCLUDE) != 0) {
|
if ((entry.getEntryKind() & IPathEntry.CDT_INCLUDE) != 0) {
|
||||||
entryList.add(entry);
|
entryList.add(entry);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue