[Qt-creator] Qt Creator: unknown warning group on Q_OBJECT using clang code model

Ch'Gans chgans at gna.org
Tue Mar 14 23:35:32 CET 2017


On 15 March 2017 at 02:03, Carel Combrink <carel.combrink at gmail.com> wrote:
> Hi,
>
> I have just switched over to to using the ClangCodeModel in Qt Creator 4.2.1
> but get the following warning on the O_OBJECT macro (see attached image):
> Lexical or Preprocessor Issue
> 20:5 warning unknown warning group '-Wsuggest-override', ignored.

I got the same here, I thought that '-Wsuggest-override' was not
understood by clang, which seems odd to me.

Chris
> ...
>
> Is this a known issue? I have looked through the bugreports but can't seem
> to find anything.
>
> I am using:
> Qt Creator 4.2.1
> Windows 7 x64
>
> My project is set up using:
> Qt 5.7 and MinGW 5
>
> Might it be related to the the compiler passing/enabling the Q_CC_GNU code
> check that clang then "sees" and parses?
>
> Is there a way to work around this issue (it is less than ideal to just
> ignore it)?
>
> I will raise a bug if needed, just want some input around the issue first.
>
> Regards,
>
>
> _______________________________________________
> 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