Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] sanner info and configurations

Indexer uses a configuration specified in the project properties (Indexer) "Build configuration for the indexer". By default it uses fixed configuration but you can tell it to use active. There was quite a discussion about that in bug 172919 if you are interested in rationale.

Andrew

On Fri, Nov 20, 2009 at 5:17 PM, Mike Kucera <mkucera@xxxxxxxxxx> wrote:

I'm running into an issue where I create a new configuration and then add an include path to just that configuration using the Paths and Symbol page, but the include path doesn't show up in the scanner info when I have that configuration set as active. After some digging I've discovered that the DescriptionScannerInfoProvider always uses the "default" configuration and ignores the active configuration. I've also noticed that when you switch configurations the contents of the includes node in the project explorer don't change to reflect the active configuration.

Is it supposed to work this way or is this a bug? I find this behavior strange because switching configs doesn't effect the indexer. I was under the impression that users might want to set up different macros and then switch configs to control what sections of code are active/inactive, but this doesn't appear to work. Is it because triggering a reindex would be too slow? In any case I would expect that when a reindex is done it would pick up the includes from the active config.

Any insight would be appreciated.


Mike Kucera
Software Developer
Eclipse CDT/PTP
IBM Toronto
mkucera@xxxxxxxxxx


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev



Back to the top