Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: constructor list when opening curly brace #97

Open
rg3 opened this issue May 12, 2020 · 0 comments
Open

Feature request: constructor list when opening curly brace #97

rg3 opened this issue May 12, 2020 · 0 comments

Comments

@rg3
Copy link

rg3 commented May 12, 2020

First off, thanks for your work on ccls and its Visual Studio Code plugin. They are fantastic and I'm using them with great success to work on several codebases. Second, I have a feature request.


Observed behavior

When using ccls and vscode-ccls, if you have a class named Foo with several constructors available, ccls immediately offers and lets you view the list of constructors as soon as you type:

Foo foo(

However, when using the C++11 uniform initialization syntax with curly braces no completion seems to happen.

Foo foo{

Expected behavior

Attempting to use uniform initialization syntax lets you view available constructors as usual.

Steps to reproduce

  1. Create a new project with a file with the following contents in Visual Studio Code:
#include <string>

class Foo
{
public:
    Foo (int value) {}
    Foo (const std::string& value) {}
};

int main (void)
{
    Foo foo(0);
    return 0;
}
  1. Delete the last characters from the Foo foo(0); line.
  2. Test constructor completion using Foo foo{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant