Golevka / emacs-clang-complete-async

An emacs plugin to complete C and C++ code using libclang
360 stars 71 forks source link

Completion of constructors doesn't work properly with namespaces #51

Open Azkae opened 10 years ago

Azkae commented 10 years ago

When I try this :

namespace User
{
     class MyClass
     {
          MyClass(int a);
     };
};

using namespace User;

int main(int argc, char *argv[])
{
     MyClass *myclass1 = new MyCla|;
     return 0;
}

Where | is the cursor. When I complete, it works fine, it expands with all the arguments etc :

MyClass *myclass1 = new MyClass(int a)

But when I try like this :

User::MyClass *myclass2 = new User::MyCla|

It doesn't expand properly, it's only giving me the name of the constructor without the arguments :

User::MyClass *myclass2 = new User::MyClass|