[Qt-creator] Clang Code Model: add -Wno-padded
Andrzej Telszewski
atelszewski at gmail.com
Fri Mar 4 17:30:23 CET 2016
On 04/03/16 09:46, Christian Kandeler wrote:
> On 03/03/2016 10:22 PM, Andrzej Telszewski wrote:
>> I do think that having this kind of information is useful, but in my
>> opinion -Wno-padded should be default, and turning on the warning should
>> be left to those who need it. I personally added -Wno-padded to the
>> clang model settings.
>>
>> Say you have a struct like that:
>> struct nopad
>> {
>> bool flag1;
>> bool flag2;
>> };
>
> Not to mention that the warning becomes completely pointless with C++
> classes containing virtual functions etc. In my experience, the
> false-positive rate is 100%.
>
Do you see the warning for classes?
In my case, it only appears for structs.
>
> Christian
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>
--
Best regards,
Andrzej Telszewski
More information about the Qt-creator
mailing list