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

Clang code model doesn't support template classes

    XMLWordPrintable

Details

    Description

      Both completion and highlighting are bad.

      template<class T>
      struct Temp1 { T var; };
      
      template <class T>
      struct Temp2
      {
          void func() { t1.var = 42; } // var is not highlighted and cannot be completed
          Temp1<T> t1;
      };

      In my real use-case even t1 itself is in some occurrences highlighted as a member, in some as a local variable and in some not at all...

      Attachments

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

        Activity

          People

            yvvan Ivan Donchevskii
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes