eclipse - Indexing all #ifdef and #else blocks with CDT -
I have each #ifdef and #else block in my C / C ++ source files with my CDT indicator 8.0.2 Linking to Unguntu on Indigo
Adding symbols will not work because it will not contain # block blocks
Is there any way that I can ignore Eclipse CDT #ifdef Can I Block # Block Block? Like other indices (like emacs cscope)
I was searching for days and I did not get any good solutions.
I actually have a large amount of code and it would be better if we do not edit it to temporarily delete #ifdefs
thanks.
No short answer CDT pre-processor does not work like this. It adheres to the correct words, which means that it only parses a branch of #ifdef Emacs may be going to each branch but it does not do such an analysis which is correct or complete as a CDT.
Your only option is to set up multiple build configurations, which is configured to parse each branch. Then you want to work in different branches, then you can construct the configuration. It is far from ideal because it can be time consuming to set up and whenever you switch you are re-indexed each time. (In addition you have to configure it to be re-indexed, go to Window> Preferences> C / C ++> Indderer and select "Use Active Build Configuration")
Note that the CDT parser Inside number # branches to be displayed in the outline view to find announcements.
Comments
Post a Comment