Discussion:
[Qt-creator] clang-tidy complains about Q_OBJECT macro
t***@gmail.com
2018-03-29 09:51:51 UTC
Permalink
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
Aleksey Kontsevich
2018-03-29 10:14:46 UTC
Permalink
https://bugreports.qt.io/browse/QTCREATORBUG-18757
I have gcc 7.3.1 on my machine however still have this. Probably depends on gcc Qt Creator was built with - which is 5.3.1

-- 
Best regards,
Aleksey
Linked in https://www.linkedin.com/in/alekseykontsevich
Post by t***@gmail.com
Hi!
I upgraded to Qt Creator 4.6.0 and was happy to see all the stuff that
warning: unknown warning group '-Wsuggest-override', ignored
Looks like another disparity between gcc and clang warning options.
QT_WARNING_DISABLE_GCC("-Wsuggest-override")
instead of the correct clang-specific warning option.
Best regards,
Timur
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
t***@gmail.com
2018-03-29 10:35:35 UTC
Permalink
Hello Aleksey,

I think the bug report is about something else entirely.

Regards,
Timur
Post by Aleksey Kontsevich
https://bugreports.qt.io/browse/QTCREATORBUG-18757
I have gcc 7.3.1 on my machine however still have this. Probably
depends on gcc Qt Creator was built with - which is 5.3.1
--
Best regards,
Aleksey
Linked in https://www.linkedin.com/in/alekseykontsevich
Post by t***@gmail.com
Hi!
I upgraded to Qt Creator 4.6.0 and was happy to see all the stuff that
warning: unknown warning group '-Wsuggest-override', ignored
Looks like another disparity between gcc and clang warning options.
QT_WARNING_DISABLE_GCC("-Wsuggest-override")
instead of the correct clang-specific warning option.
Best regards,
Timur
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
Aleksey Kontsevich
2018-03-29 10:47:13 UTC
Permalink
People in blog said it is: http://blog.qt.io/blog/2018/03/28/qt-creator-4-6-0-released/#comment-1202733

-- 
Best regards,
Aleksey
Linked in https://www.linkedin.com/in/alekseykontsevich
Post by t***@gmail.com
Hello Aleksey,
I think the bug report is about something else entirely.
Regards,
Timur
 https://bugreports.qt.io/browse/QTCREATORBUG-18757
 I have gcc 7.3.1 on my machine however still have this. Probably
 depends on gcc Qt Creator was built with - which is 5.3.1
 --
 Best regards,
 Aleksey
 Linked in https://www.linkedin.com/in/alekseykontsevich
 > Hi!
 >
 > I upgraded to Qt Creator 4.6.0 and was happy to see all the stuff
 > that
 >
 > warning: unknown warning group '-Wsuggest-override', ignored
 >
 > Looks like another disparity between gcc and clang warning options.
 >
 > QT_WARNING_DISABLE_GCC("-Wsuggest-override")
 >
 > instead of the correct clang-specific warning option.
 >
 > Best regards,
 > Timur
 > _______________________________________________
 > Qt-creator mailing list
 > http://lists.qt-project.org/mailman/listinfo/qt-creator
Eike Ziller
2018-03-29 10:51:17 UTC
Permalink
Looks like https://bugreports.qt.io/browse/QTCREATORBUG-17460

Not sure why that reappeared for you.

Br, Eike
Post by t***@gmail.com
Hi!
I upgraded to Qt Creator 4.6.0 and was happy to see all the stuff that
warning: unknown warning group '-Wsuggest-override', ignored
Looks like another disparity between gcc and clang warning options.
QT_WARNING_DISABLE_GCC("-Wsuggest-override")
instead of the correct clang-specific warning option.
Best regards,
Timur
_______________________________________________
Qt-creator mailing list
http://lists.qt-project.org/mailman/listinfo/qt-creator
--
Eike Ziller
Principal Software Engineer

The Qt Company GmbH
Rudower Chaussee 13
D-12489 Berlin
***@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
Aleksey Kontsevich
2018-03-29 11:01:12 UTC
Permalink
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
Post by Eike Ziller
Looks like https://bugreports.qt.io/browse/QTCREATORBUG-17460
Not sure why that reappeared for you.
Br, Eike
 Hi!
 I upgraded to Qt Creator 4.6.0 and was happy to see all the stuff that
 warning: unknown warning group '-Wsuggest-override', ignored
 Looks like another disparity between gcc and clang warning options.
 QT_WARNING_DISABLE_GCC("-Wsuggest-override")
 instead of the correct clang-specific warning option.
 Best regards,
 Timur
 _______________________________________________
 Qt-creator mailing list
 http://lists.qt-project.org/mailman/listinfo/qt-creator
--
Eike Ziller
Principal Software Engineer
The Qt Company GmbH
Rudower Chaussee 13
D-12489 Berlin
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
http://lists.qt-project.org/mailman/listinfo/qt-creator
Loading...