I am using ARM Eclispe for DS-5 environment to maintain and build a command-line (makefile based) project. Using the Eclipse's Indexer to analyze the code for intelligent browsing and editing, it looks like it does not recognize the underlying ARM C compiler 5 predefined macros. For example, if I have in my code:
#warning "XXXXXXXX Im here 1 XXXXXXX"
#ifdef __arm__
#warning "XXXXXXXX Im here 2 XXXXXXX"
#endif
then when compiling the module I see the first and second warnings (the compiler is aware of its own __arm__
macro, of-course). However, in the editor, the code in the #ifdef
block is grayed out. Consequently, I have hundreds of false error indications in the Problems
view.
How can I make the environment aware of the compiler built-in settings?
* Using ARM DS-5 version 5.20, and armcc version 5.05