I am only using eclipse CDT generator as an example. I did notice myself that it goes crazy with indexing subprojects.
I currently have my generator basically working using the extra generator approach, but i would move to file-api, if there is an example. .