How to disable 'Excess elements in struct initialiser'?


I'm using QStringLiteral() from Qt and CLion 2020.1 EAP lights up on it generously with:



Perhaps Qt is wrong here or it is by design, I'm not sure, but there's nothing I can change about the macro on my end. How can I suppress this notification? The UI didn't seem to offer an intuitive way like it does with other issues it flags.

Codebase is open-source and can be found here.

1 comment
Comment actions Permalink

Hi Vadim!

This inspection (File | Settings | Editor | Inspections > C/C++ | Type checks | Incompatible initializers) is adjustable only when clangd is off (File | Settings | Languages & Frameworks | C/C++ | Clangd).

Also feel free to comment or upvote


Please sign in to leave a comment.