[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 191697] New: Completion for implementing functions should not
From:       Thomas McGuire <mcguire () kde ! org>
Date:       2009-05-05 15:09:50
Message-ID: bug-191697-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

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

           Summary: Completion for implementing functions should not add
                    the namespace when it is already in a "using
                    namespace" directive
           Product: kdevelop
           Version: unspecified
          Platform: unspecified
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-bugs@kdevelop.org
        ReportedBy: mcguire@kde.org


Version:           3.9.92 (using KDevPlatform 0.9.92) (using 4.2.71 (KDE 4.2.71
(KDE 4.3 >= 20090428)), compiled sources)
Compiler:          gcc
OS:                Linux (x86_64) release 2.6.27.21-0.1-default

Consider the following stituation:

namespace A {

  class B {
    void foo();
  };
}

using namespace A;

<cursor>

If I now press ctrl+space and choose to implement the function foo, KDevelop
adds the following:

void A::B::foo()
{

}

It should however not add "A::", since there is a "using namespace A" directive
already.
So instead, KDevelop should add:

void B::foo()
{

}

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic