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

Clang: Implicitly define identifying macro when using clang code model

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • Qt Creator 4.5.0-rc1
    • Qt Creator 4.1.0, Qt Creator 4.4.0-rc1, Qt Creator 4.6.0-beta1
    • C/C++/Obj-C++ Support
    • None

      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)

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes