Hopefully this is the right place to ask.
I would like to build a code checker, and I would need to know where the directories for the default includes are, basically taking them from the discovered information. It's proving much harder than I thought. The only solution I found is something like this:
IConfiguration configuration = ManagedBuildManager.getBuildInfo( file ).getDefaultConfiguration();
PathInfo projectPathInfo = CfgDiscoveredPathManager.getInstance().getDiscoveredInfo( file.getProject(), new CfgInfoContext( configuration ) );
IPath[] defaultIncludeDirs = projectPathInfo.getIncludePaths();
The problem is that the list of include directories is empty. My guess is that I have to use the constructor CfgInfoContext that takes an InfoContext, but I don't know how to find or build an InfoContext. It seems a fairly obscure task. Besides, I don't know if my approach is good in the first place.
Can someone give me some more information? Thanks