Review Request: Offer create private/protected members when possible in missingdeclarationaction
Aleix Pol Gonzalez
aleixpol at gmail.com
Wed Dec 14 01:10:26 UTC 2011
> On Dec. 13, 2011, 5:59 p.m., Milian Wolff wrote:
> > ok from my side, but please send the patch as created by "git format-patch" and remove the whitespace changes first.
>
> Jonas Jacobi wrote:
> ok, i can/will do that, but the whitespace changes are actual "fixes", because they remove superfluous leading/trailing whitespaces, shall i remove them anyway?
Yes, please. Remove them because otherwise the history gets a little dirty.
Your change is about those C++ helpers, not whitespace cleaning :).
- Aleix
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/102625/#review8930
-----------------------------------------------------------
On Sept. 17, 2011, 8:28 a.m., Jonas Jacobi wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/102625/
> -----------------------------------------------------------
>
> (Updated Sept. 17, 2011, 8:28 a.m.)
>
>
> Review request for KDevelop.
>
>
> Description
> -------
>
> Currently only public member variables can be declared in some contexts.
> This patch checks whether private/protected members would be also accessible from the current context (disregarding friend declarations atm)
> and if so, offer the possibility to create the members.
> e.g.
>
> class A {
> public:
> A(int x) : mUndeclared(x) {} // <- declare mUndeclared as private/protected/public member
> };
>
> class B : public A {
> public:
> void foo() {
> A a(2);
> a.undeclared = 5; // <- declare undeclared as protected/public
> }
> };
>
> class X {
> public:
> void bar() {
> B b;
> b.undeclared = 5; // <- declare undeclared as public
> }
> };
>
>
> Diffs
> -----
>
> languages/cpp/cppduchain/missingdeclarationassistant.cpp bafc159
>
> Diff: http://git.reviewboard.kde.org/r/102625/diff/diff
>
>
> Testing
> -------
>
> I'm currently using it
>
>
> Thanks,
>
> Jonas Jacobi
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20111214/b9465b95/attachment.html>
More information about the KDevelop-devel
mailing list