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

Clang code model underlines first line for error elsewhere

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 3.6.0
    • Qt Creator 3.4.0
    • C/C++/Obj-C++ Support
    • None
    • Windows 7 64 bit

    Description

      1. Enable the ClangCodeModel plugin and restart Creator.
      2. In "Tools" -> "Options..." -> "C++" -> "Code Model", enable Clang for all file types.
      3. Create a new Plain C++ Project.
      4. After the first line in main.cpp, add a broken include.
        The first line, which is correct, will be underlined.
      5. Hover the first line with the mouse.
        You'll see a tooltip: "'<filename>' file not found":
      6. Close and reopen main.cpp.
        The underline of the first line and the tooltip are gone.

      When there's an error in the code, only the wrong line should be underlined.

      When using Creator's built-in code model, these error indicators will only be shown in the right location.

      Attachments

        1. underline.png
          4 kB
          Robert Löhning

        Issue Links

          Activity

            People

              kosjar Nikolai Kosjar
              rlohning Robert Löhning
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: