CLion C code shows red struct field errors but code compiles and intellisense shows the fields as available

已回答

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 ?

0

Hi! Could you please provide a code snippet?

0
Avatar
Permanently deleted user

 

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:


0

Thanks for the response!

Could you please try the latest EAP (which just has been released)? I can't reproduce the issue in it:

0
Avatar
Permanently deleted user

The problem is gone with CLion build 181.3986.16 which I installed from ToolBox last night.

0

请先登录再写评论。