Host: Ubuntu 14.04.3 x64
CCS Version: 6.1.1.00022
Code Composer highlights wrong sections of #if ... #else preprocessor directive when using something defined by compiler.
Code sample:
#include <msp430.h>
#if defined(__TI_COMPILER_VERSION__)
#warning TI Compiler Version defined
#else
#warning TI Compiler Version not defined
#endif
int main(void) {
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer
return 0;
}
Result: warning: TI Compiler Version defined, but Code Composers shows this on gray background and thinks the #else part is executed.
The excepted result is to show #else part on gray background.

