Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-16847

Clang: Implicitly define identifying macro when using clang code model

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: Qt Creator 4.1.0, Qt Creator 4.4.0-rc1, Qt Creator 4.6.0-beta1
    • Fix Version/s: Qt Creator 4.5.0-rc1
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              kosjar Nikolai Kosjar
              Reporter:
              ngladitz Nils Gladitz
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes