Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Indexer doesn't understand preprocessor directives in assembly file
Indexer doesn't understand preprocessor directives in assembly file [message #1835111] Tue, 24 November 2020 20:50
Greg L is currently offline Greg LFriend
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
BRA some_branch
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
Previous Topic:C/C++ editor display appears out of sync big sur
Next Topic:C++17 and .language.settings.
Goto Forum:
  


Current Time: Mon Oct 07 23:33:32 GMT 2024

Powered by FUDForum. Page generated in 0.03463 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top