Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-955 Fix template expansion
  3. QTCREATORBUG-815

Code completion not following nested templates

    XMLWordPrintable

Details

    Description

      Consider the following code

       
      template<typename T>
      class A
      {
        public:
        typedef T value_t;
      
        T a;
      };
      
      template<typename T>
      class B
      {
        public:
        typedef T value_t;
      
        T b;
      };
      
      typedef A<int> A_int;
      typedef B<A_int> B_A_int;
      
      int main()
      {
        B_A_int::value_t a1_obj;
        A_int a2_obj;
      
        a1_obj.a; // no completion here
        a2_obj.a; // completion here
      }
      

      Attachments

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

        Activity

          People

            kosjar Nikolai Kosjar
            nithin19484 Nithin S
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes