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

C++ parser fails on recursive includes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 4.11.0-beta1
    • C/C++/Obj-C++ Support
    • None

      See attached example: parser-issue.tar.gz

      If there are two headers and one includes another and back, then C parser may fails and content of once header displays as disabled.

      Note, only if include Guards is used. With #pragma once all worked as expected.

      In attached sample, foo.h displayed as grayed.

        1. parser-issue.tar.gz
          1 kB
          Alexander Drozdov
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kosjar Nikolai Kosjar
            monah_tuk Alexander Drozdov
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes