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

clangd sometimes switches to the C mode

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • Qt Creator 8.0.0
    • Qt Creator 8.0.0-beta1, Qt Creator 8.0.0-beta2, Qt Creator 8.0.0-rc1
    • None
    • Windows:
      Microsoft Visual C++ compiler 17.1.3241.318 (amd64)
      CMake 3.22.1
      No Qt version in the kit

      stock clangd, background indexing disabled
    • Windows
    • 0456643a86

    Description

      Sometimes clangd switches to the C mode in CMake C++ projects.

      Steps to reproduce:

      1. clone git@github.com:absurdworlds/awlib.git
      2. configure project
      3. configure the project with -DAW_ENABLE_GRAPHICS_OFF
      4. open assert.h
      5. you should see following errors:
      yvals_core.h:23:2: STL1003: Unexpected compiler, expected C++ compiler.
      
      assert.h:20:14: Unknown type name 'namespace'

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            hedede hedede
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes