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

            Bug ID: 435648
           Summary: Auto completion should take into account namespaces
                    that we have a using directive for
           Product: kdevelop
           Version: git master
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Language Support: CPP (Clang-based)
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: k...@david-redondo.de
  Target Milestone: ---

SUMMARY
When implementing a class inside a namespace you either also have an enclosing
namespace foo { } in your .cpp file or have a using directive at the top of
your file. For the latter auto completion will not take this into account

Minimal example:

namespace A {
    class B {
        void f();
    };
    // 1
}

using namespace A;
// 2

Typing B below //1 will autocomplete to

void B::f()
{
}

however typing B below //2 will autocomplete to

void A::B::f()
{
}

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

Reply via email to