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

    • Platform/s:
      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

        For Gerrit Dashboard: QTCREATORBUG-26810
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            kandeler Christian Kandeler
            Reporter:
            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