My c++ project builds fine. But CLion annoyingly underlines in red the variables and classes declared in my header files, with the tool-tip hover claiming that they are redefinitions.
The problematic header files look like:
with the corresponding FooINLINES.cpp looking like:
When I replace my `#pragma once` header guards with `#ifdef - #define - #endif` guards, these complaints disappear. Alternatively, if I remove the include at the top of the INLINES file, the complaints disappear. I'd prefer not to do either of these.
Can someone advise on how to resolve this issue? I am using CLion 2022.1.1 on Ubuntu, with built-in clangd 15.0.0.