Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Include statements

Thanks, it worked perfectly !

For the record, the code I used was :

String path = "/AppliToCheck/src/AppliToCheck.c";
IFile file =  ResourcesPlugin.getWorkspace().getRoot().getFile(new
ITranslationUnit tu = CoreModelUtil.findTranslationUnit(file);
try {
	IASTTranslationUnit iast = tu.getAST();
	IASTPreprocessorIncludeStatement[] tab = iast.getIncludeDirectives();
	//The header I am looking for is in tab
} catch (CoreException e1) {

View this message in context:
Sent from the Eclipse CDT - Development mailing list archive at

Back to the top