[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] sanner info and configurations
|
2009/11/20 Mike Kucera <mkucera@xxxxxxxxxx>:
> 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.
Indeed, I've been perplexed by this as well. IMHO CDT's default of
indexer not following the active configuration is wrong and confusing
to users. The justification is rebuilding the index is slow for large
projects, but I'd argue that large projects which have this problem,
already use IDEs with the default the other way round:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=213300
As it stands it's yet another concept users need to understand to get
CDT to display the code sensibly. The real fix would be to have an
index per configuration, then we could remove the odd notion of
default vs active configuration:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=183781
Cheers,
James