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

For editor __clang__ macro is active

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • Qt Creator 14.0.1
    • C/C++/Obj-C++ Support
    • None
    • Ubuntu 24
    • Linux/X11

    Description

      There is _clang_ macro to detect clang compiler... For my code I expect gray color for #define v ( 1 ) but opposite situation happen...

      #ifdef __clang__
      #define v ( 1 )
      #else
      #define v ( 0 )
      #endif
      

      I have clang in my system but for now in my Kit I use GCC. And in fact v as 0 comes, so for compiling no problem, problem for editor only.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            dungeonlords Andrei Cherniaev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes