I have some code which CLion will fail to parse. For example, it might be included into another file, but must rely on code it does not itself include.
Now, in an answer to this question, we learn that CLion's parser recognizes the define __CLION_IDE__
, so that you can write blocks such as:
#ifdef __CLION_IDE__
typedef int type_we_assume_is_define;
#endif
... which should only be parsed by CLion. But - I can't have even that in my file, for reasons. Is there a way to force CLion's parser to recognize some more type definitions, or at least preprocessor macros - not via the source file itself?
I'm using CLion 2021.3.