Indexer doesn't understand preprocessor directives in assembly file [message #1835111] |
Tue, 24 November 2020 20:50 |
Greg L Messages: 1 Registered: November 2020 |
Junior Member |
|
|
Hi all,
I have a big messy legacy code with c and assembly files mixed. I tried to setup an eclipse project to make code browsing easier.
Everything works nicely except one thing: the indexer somehow disregards #ifdef and #if defined(...) preprocessor directives in the assembly files (*.S). E.g. in a code like this:
#ifdef SOME_MACRO
...
#else
...
#endif
None of the two parts are greyed out. The indexer seems to process the files though, as I can jump to a branch when I CTRL + click on a instruction. Also if I clock on the SOME_MACRO, it will jump to the definition if it's defined.
As the project has big assembly files, with lot's of code enabled/disabled through this technique (I cannot change this :( ), it would be really helpful if the indexer greyed out unused code, like it does in C source code correctly. I tried to search in the CDT documentation, but couldn't find anything useful. Any pointers would help!
Thanks, Greg
|
|
|
Powered by
FUDForum. Page generated in 0.03463 seconds