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

clang code model has problems in C context

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • Qt Creator 4.12.0-beta1
    • C/C++/Obj-C++ Support
    • None

    Description

      one of my project has a mixture of both c and c++ source files. qtc has the notion of the "active parse context" when opening a header file in qtc, to select if a header should be parsed in for a target in a c or in a c++ context.

      on macos i'm seeing a funny problem:

      • the file is parsed nicely when using the c++ parse context
      • the file is parsed nicely when there target does not have different c and c++ contexts (all c or all c++)
      • when using the c parse context of a target that has both c and c++, the IDE shows a "parse error" about macos system headers. e.g. `MacTypes.h` cannot be found

       

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            timblechmann tim blechmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes