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

Clangd reports wrong semantic issues under Android/iOS " .. is a protected member of ... "

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • Qt Creator 7.0.0, Qt Creator 7.0.1
    • C/C++/Obj-C++ Support
    • Target: iOS, Android
      Host: Windows, macOS
    • macOS, Windows

    Description

      Semantic issues like below screenshot appears when
      target OS is iOS or Android and host OS is Windows or macOS

      In case of screenshot,
      CNvHttpRequestManager is a friend class of class CNvHttpRequest and has the right to access CNvHttpRequest's protected members.

      This does not occur when the target is Windows or macOS.

      Attachments

        1. error1.png
          error1.png
          135 kB
        2. error2.png
          error2.png
          107 kB
        3. error3.png
          error3.png
          43 kB
        4. error4.png
          error4.png
          32 kB
        5. main.cpp
          0.3 kB
        6. qtcbug27457-clangd-warning.png
          qtcbug27457-clangd-warning.png
          122 kB

        Issue Links

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

          Activity

            People

              kandeler Christian Kandeler
              nagrohn Nahomi Gröhn (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes