CLion gives errors on GCC extension methods.

I am using some GCC extension methods, namely __builtin_shufflevector and CLion is reporting it as an error, even though it compiles in GCC just fine.

Is there anyway to disable an error for one method? Or anyway to get CLion to recognize GCC extension methods?

0

Hello!

Is the "Use the ReSharper C++ language engine (CLion Nova)" option enabled in  File | Settings | Advanced Settings | CLion?

0

It's probably not related entirely. 

But CLion, when facing with this code was telling, Type-specifier missing, defaults to 'int' .
I then tried to remove the CLION Nova engine, and it's now working well. 
 

typedef struct __attribute__((__packed__))
{
    UINT8 PxIN;             // 0x00    offset PxIN, input
    UINT8 SpacePxIN;

    UINT8 PxOUT;         // 0x02 offset PxOUT, output
    UINT8 SpacePxOUT;
} IO_PORT_REGISTER_t;
0

请先登录再写评论。