https://bugs.kde.org/show_bug.cgi?id=220287

Milian Wolff <m...@milianw.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
          Component|Language Support: CPP       |Language Support: CPP
                   |                            |(Clang-based)
            Summary|deriving from a template    |missing use reports for
                   |class causes kdevelop's c++ |`this->member` in class
                   |analysis some trouble       |templates
             Status|UNCONFIRMED                 |CONFIRMED

--- Comment #7 from Milian Wolff <m...@milianw.de> ---
most of this got fixed with the move to clang, but we seem to not get enough
information from clang for this example:
template<class T>
struct A {
    int A_test;
};

template<class T>
struct C : A<int> {
    C() {
        // uses get reported here
        A_test = 2;
        C_test = 42;
        // but not here
        this->A_test = 3;
        this->C_test = 4;
    }
    int C_test;
};

struct B {
    B() {
        // this works fine
        foo++;
        this->foo--;
    }
    int foo;
};

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to