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

Clang: No Completion for templated type alias

    XMLWordPrintable

Details

    Description

      struct C{};
      
      template <typename T>
      struct Foo { T member; };
      
      template<typename T> using Bar = Foo<C>;
      
      void f()
      {
       // Complete here, "Bar" is not included
      }
      

      This must be a bug on our side because completion with c-index-test works:

      $ ~/dev/llvm/3.9/installs/gcc54_rtti/bin/c-index-test -code-completion-at=main.cpp:10:18 main.cpp | grep -i Ba
      macro definition:{TypedText __BASE_FILE__} (70)
      TypeAliasTemplateDecl:{TypedText Bar}{LeftAngle <}{Placeholder typename T}{RightAngle >} (50)
      

      Attachments

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

        Activity

          People

            yvvan Ivan Donchevskii
            kosjar Nikolai Kosjar
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes