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

Private AND/OR Static template methods are not marked in outline with correct icon overlays

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • Qt Creator 4.7.0-rc1, Qt Creator 4.8.0-beta1
    • C/C++/Obj-C++ Support
    • Windows
    • Windows

    Description

      Private template methods are not marked in outline with correct icon (with "lock" overlay)

      class A{
        template<class t1>
         void static a(t1 v1) {v1=0;}
      
        void static b(int v1) {v1=0;}
      };
      
      void f() {
        //A::a is private so error if
        int a; A::a(a); //'A::a' : cannot access private member declared in class 'A'
      }

      With build-in code model gives:

      Does not show 'lock'.

      With clang code model:

      shows 'lock' but does not show 's'.

      Plus clang code model generates useless extra string with template type t1

       

       

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            progrev Prav Ogrev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes