• Przemyslaw Gorszkowski's avatar
    C++: fix auto completion for template parameters · bfbf93e6
    Przemyslaw Gorszkowski authored
    Fix auto completion for the case when template parameter should be
    found somewhere of scope of template instantiation declaration.
    Example:
    struct A
    {
        void foo();
        struct B
        {
            int b;
        };
    };
    
    template<typename T>
    struct Template
    {
        T* get() { return 0; }
        T t;
    };
    
    void A::foo()
    {
        Template<B> templ;
        templ.get()->//no autocompletion
        templ.t.//no autocompletion
    }
    
    Task-number: QTCREATORBUG-8852
    Task-number: QTCREATORBUG-9169
    Change-Id: I56b40776e66740f995ae6fc5d69e3c50139a3af2
    Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
    bfbf93e6
ResolveExpression.cpp 39.4 KB