Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] How to figure out whether IIndexFile is a header?

the short answer is: no you can't and your trick does not work for
headers that
are never included. 
Your best workaround is probably to look at the location of the file.
Markus.



> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx 
> [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Dmitry Smirnov
> Sent: Thursday, October 02, 2008 5:00 PM
> To: CDT General developers list.
> Subject: [cdt-dev] How to figure out whether IIndexFile is a header?
> Importance: Low
> 
> Hi,
> 
> Using AST I can easily detect header file with 
> IASTTranslationUnit.isHeaderUnit().
> Can I do the same with IIndexFile?
> Should I use some trick like IIndex.getIncludedBy()?
> 
> Dmitry
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
> 


Back to the top