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

[clangd] Doesn't re-parse edited non-current file until saved

    XMLWordPrintable

Details

    • Linux/X11

    Description

      Steps to reproduce:

      1. Enable Clangd
      2. Have a class header and it's cpp file
      3. Open header, add void foo() method
      4. Press Alt-Enter and select "Add definition in name.cpp"
      5. It switches to cpp file with a function definition

      Expected result:

      • doesn't show an error

      Actual result:

      • Shows an error in annotation for this function: "name.cpp:13:18: Out-of-line definition of 'foo' does not match any declaration in 'name'"

      Additional info: After pressing Ctrl-Shift-S to save all opened files the error disappears

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            volodymyr_zibarov Volodymr Zibarov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes