Clion does not detect code errors

Hello,
I am trying to use clion with platformIO. Is there to get the level of code warnings and suggestion to the same level VS Code has? For example, clion does not detect when there is no static before constexpr variable in the code. In VS Code, I get red underlining that something is wrong but not in Clion. Can I somehow push the PlatformIO code analysis to Clion, too?
Thank you