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.
请先登录再写评论。
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 https://youtrack.jetbrains.com/issue/CPP-15672.