CLion C code shows red struct field errors but code compiles and intellisense shows the fields as available
Answered
I have no idea what I am doing wrong. Using CLion 2018.1 EAP.
CMakeLists.txt specifies the C standard as
CMAKE_C_STANDARD 99
Any suggestions ?
Please sign in to leave a comment.
Hi! Could you please provide a code snippet?
struct sourceBlock {


/**
* Optional processing flags
*/
unsigned int flags;
/**
* Original source text
* NB: This is not allocated from the memory pools as the source can be larger than the largest allocatable block
*/
unsigned char *source;
}
Shows this:
Intellisense shows the fields as expected:
Thanks for the response!
Could you please try the latest EAP (which just has been released)? I can't reproduce the issue in it:
The problem is gone with CLion build 181.3986.16 which I installed from ToolBox last night.