As @codablock pointed out in https://github.com/dashpay/dash/pull/1975:
Clion is not able to parse this correctly and messes up all the syntax checks, marking large parts of C++ files as syntactically invalid, making it hard to find real syntax errors without trying compilation.