new NullProgressMonitor());
for (IIndexMacro macro : macros) {
ICElement element = IndexUI.getCElementForMacro(
src.getCProject(), index, macro);
if (element != null) {
ISourceReference ref = (ISourceReference)element;
FileLocation location = new FileLocation(
ref.getTranslationUnit().getPath().toPortableString(),
ref.getSourceRange().getStartPos(),
ref.getSourceRange().getLength(),
ref.getSourceRange().getStartLine());
names.add(new Name(location));
}
}
}
}