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
Path(path));
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: http://eclipse.1072660.n5.nabble.com/Include-statements-tp165635p165661.html
Sent from the Eclipse CDT - Development mailing list archive at Nabble.com.


Back to the top