[Qt-creator] clang-tidy complains about Q_OBJECT macro
Aleksey Kontsevich
tantrido at ya.ru
Thu Mar 29 13:01:12 CEST 2018
Yes, not exactly the same but similar:
Warning. The code model could not parse an included file, which might lead to slow or incorrect code completion and highlighting, for example.
type_traits:3070:7: error: expected ‘(‘ for function-style cast or type construction
QLoggingCategory:1:10: note: in file included from Qt/5.10.1/gcc_64/include/QtCore/QLoggingCategory:1:
qloggingcategory.h:43:10: note: in file included from Qt/5.10.1/gcc_64/include/QtCore/qloggingcategory.h:43:
qglobal.h:45:12: note: in file included from Qt/5.10.1/gcc_64/include/QtCore/qglobal.h:45:
Also it puts warning in lines with Q_OBJECT macro, and suggests to add override to objects' destructors, etc.
--
Best regards,
Aleksey
Linked in https://www.linkedin.com/in/alekseykontsevich
29.03.2018, 13:51, "Eike Ziller" <eike.ziller at qt.io>:
> Looks like https://bugreports.qt.io/browse/QTCREATORBUG-17460
>
> Not sure why that reappeared for you.
>
> Br, Eike
>
>> On Mar 29, 2018, at 11:51, timur.kristof at gmail.com wrote:
>>
>> Hi!
>>
>> I upgraded to Qt Creator 4.6.0 and was happy to see all the stuff that
>> went in. However, it now dislikes the Q_OBJECT macro:
>>
>> warning: unknown warning group '-Wsuggest-override', ignored
>>
>> Looks like another disparity between gcc and clang warning options.
>> I guess it somehow picks up this:
>>
>> QT_WARNING_DISABLE_GCC("-Wsuggest-override")
>>
>> instead of the correct clang-specific warning option.
>>
>> Best regards,
>> Timur
>> _______________________________________________
>> Qt-creator mailing list
>> Qt-creator at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/qt-creator
>
> --
> Eike Ziller
> Principal Software Engineer
>
> The Qt Company GmbH
> Rudower Chaussee 13
> D-12489 Berlin
> eike.ziller at qt.io
> http://qt.io
> Geschäftsführer: Mika Pälsi,
> Juha Varelius, Mika Harjuaho
> Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
More information about the Qt-creator
mailing list