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

Clang code model throws its hands on error in included file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 4.8.1, Qt Creator 4.9.0-beta1
    • C/C++/Obj-C++ Support
    • None

      When one of the included headers includes a non-existing header, code model stops parsing all headers.

      Attached is an example project displaying the behavior. `header2.h` includes a non-existent header. If `header.h` is included first, everything works fine. If `header2.h` is included first, a struct defined in `header.h` shows up as "incomplete type" according to the analyzer.

      Screenshots also attached.

        1. Broken.PNG
          Broken.PNG
          7 kB
        2. Broken-2.PNG
          Broken-2.PNG
          9 kB
        3. clang-analyzer-test.zip
          1 kB
        4. winver.png
          winver.png
          15 kB
        5. Working.PNG
          Working.PNG
          7 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kosjar Nikolai Kosjar
            aburakov Anatoly Burakov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes