I'm using Eclipse for a C++ project. I've been using Eclipse for this same project for a long time, but now I've reinstalled my Ubuntu, and installed Eclipse Oxygen and set it up again. The project compiles, there are no unresolved includes. But there is one annoyance.
This project uses rapidjson. And everywhere in the code, where some rapidjson-related object is used, it's colored as either a 'syntax error' or 'could not be resolved' by Eclipse. I've tracked this back to the rapidjson headers (which are included in the project), and Eclipse starts saying 'syntax error' right from the line where
namespace rapidjson {
starts, and it ends with the end of the namespace. The weirdest thing in all this is that if I change the name of the namespace to something else, like 'rapidjson2', the error disappears.
What could cause this weird behaviour?