mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 01:36:01 +02:00
Follow up for 189811, filter static variables and functions.
This commit is contained in:
parent
f6b7c739ba
commit
d94962d1e8
1 changed files with 6 additions and 3 deletions
|
@ -244,9 +244,12 @@ public class ElementSelectionDialog extends TypeSelectionDialog {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
IIndexBinding binding = bindings[i];
|
IIndexBinding binding = bindings[i];
|
||||||
final int elementType = IndexModelUtil.getElementType(binding);
|
// until we have correctly modeled file-local variables and functions, don't show them.
|
||||||
if (isVisibleType(elementType)) {
|
if (!binding.isFileLocal()) {
|
||||||
types.add(IndexTypeInfo.create(index, binding));
|
final int elementType = IndexModelUtil.getElementType(binding);
|
||||||
|
if (isVisibleType(elementType)) {
|
||||||
|
types.add(IndexTypeInfo.create(index, binding));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Add table
Reference in a new issue