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

Clang code model fails highlighting and code completion with boost 1.57 headers

    XMLWordPrintable

Details

    • 951aee8f3a79b0ae66255c9bd1712970ca857299 (qt-creator/qt-creator/4.8)

    Description

      I work on a software project which involves Qt and Boost (version 1.57.0). This combination within Qt creator doesn't seem to play well with the Clang code model for whatever reason. If I look at the DebugView output then what I end up seeing is a lot of "fatal error: too many errors emitted" which seem to be stemming from templates in the boost headers.

      Clang itself has no issue compiling this version of boost, so I'm surprised at the number of errors it's reporting. As of now the only way I can continue working is to disable the clang code model.

      I've attached a trivial .cpp file which illustrates the issue for me, along with the debug output from that file.

      Attachments

        1. image-2018-12-07-16-30-11-477.png
          image-2018-12-07-16-30-11-477.png
          10 kB
        2. main.cpp
          2 kB
        3. main.cpp
          1 kB
        4. qt-creator-debug-log.LOG
          855 kB

        Activity

          People

            yvvan Ivan Donchevskii
            alexelliott Alex Elliott
            Votes:
            10 Vote for this issue
            Watchers:
            17 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: