Further problem:
The indexer was set to "Use a fixed build configuration".
That's why I could build in different configurations, but the Editor always showed the flag values of my specified configuration (=Debug).
It should be possible to use project specific (PS) indexer settings, but...
There is a bug within Eclipse which leads to an unintuitive behaviour of the indexer (see
bug 205299):
- WS: Window > Preferences > C/C++ > Indexer > Build configuration for the indexer: Use the build configuration specified in the projects's indexer settings
- PS: Project Properties > C/C++ General > Indexer > User active build configuration
Solution: Use workspace specific (WS) indexer settings: Use active build configuration