Details
-
Suggestion
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 4.1.0, Qt Creator 4.4.0-rc1, Qt Creator 4.6.0-beta1
-
None
Description
Clang's diagnostic pragmas work with the clang code model but there is no identifying macro left to guard such pragmas since _clang_ (and related) default macros are explicitly undefined.
It would be nice if there were an alternative macro, implicitly defined by QtCreator when using the clang code model, that could be used instead.
(Similar to how Q_CREATOR_RUN is provided for the builtin code model)
Attachments
For Gerrit Dashboard: QTCREATORBUG-16847 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
211922,3 | Clang: Add identifying macro Q_CREATOR_RUN | 4.5 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |