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

Clang code model not working with MSVC compiler options

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • Qt Creator 4.10.0
    • C/C++/Obj-C++ Support
    • None
    • C++, Windows 10
    • Windows

    Description

      I am not able to have highlighting when using clang code model with Qt Creator on Windows when I use MSVC :

      here is the .pro

      TEMPLATE = app
      CONFIG += console c++17
      CONFIG -= app_bundle
      CONFIG -= qt
      QMAKE_CXXFLAGS += /d2cgsummary /experimental:preprocessor
      SOURCES += \
      main.cpp
      

       
      here is the main.cpp

      #include <iostream>
      
      using namespace std;
      
      int main()
      {
          cout << "Hello World!" << endl;
          return 0;
      }
      

      Maybe there is a workaround?

      Attachments

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

        Activity

          People

            cadam Cristian Adam
            qnope Antoine MORRIER
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes