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

Clangd fails to parse when using an old/custom compiler

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 9.0.0-beta1
    • C/C++/Obj-C++ Support
    • None

      Configure a custom compiler, and a kit that uses it (no customizations for the compiler, and no executable).

      Open a minimal project. I used qmake:

      CONFIG += console
      CONFIG -= qt
      SOURCES += main.cpp

      main.cpp:

      int global = 42;

      The file is not highlighted, and no C++ features work on it.

      clangd log from Inspect Language Clients attached.

        1. custom-toolchain.mp4
          1.46 MB
        2. compile_commands.json
          4 kB
        3. clangd.log
          7 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kandeler Christian Kandeler
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes