Using Eclispe for DS-5 and compiler version 5.05, I get a problem in editing my project source files in the Eclipse Editor. It happens that the Indexer does not recognise the compiler's predefined macros, like "__arm__". This causes numerous false error indications in my editor views. Obviously, the project builds just fine, as the compiler takes the correct decisions based on the predefined macros. It is just that the annotation in the editor tabs is incorrect.
Similarly,another problem I encountered is with the Editor not recognizing the "__asm" keyword, marking a function af an inline assembly one. I get a syntax error indication on my code lines. However, sinec this is a leggit keyword, the code compiles just fine.
How can I configure Eclispe to "understand" the "__asm" keyword and the predefined macros?
An update to the question: I found out that the problem with the "__asm" keyword exists when the line is a pure declaration line. If I add a "{}" after the declaration, making it a definition, then there is no error indicated.
BTW, I am using DS-5 v5.20 w/ armcc 5.05