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: support c++ public/private keyword #112

Open
MartyLake opened this issue Oct 28, 2021 · 1 comment
Open

Feature request: support c++ public/private keyword #112

MartyLake opened this issue Oct 28, 2021 · 1 comment

Comments

@MartyLake
Copy link

Hello,
Thanks for creating such a useful plugin !

There is one usecase that is missing, maybe a misconfiguration from me. The code I am working with has some long c++ classes with some private and public parts. I wish that the class name, and inheritance could be shown by context.vim.

Input:

class A
  : public B
  {
public:
  // tons of public methods
private:
   // tons of private methods too
   void SomeMethod();    //<--put the cursor here

Actual:

private:
//-------------------------------------------------   <context.vim>
   void SomeMethod();    //<--put the cursor here

Expected:

class A
  : public B
  {
private:
//-------------------------------------------------   <context.vim>
   void SomeMethod();    //<--put the cursor here

Best,

@MartyLake MartyLake changed the title support c++ public/private keyword Feature request: support c++ public/private keyword Oct 28, 2021
@sh1boot
Copy link

sh1boot commented Jan 24, 2024

Notable that the Google style guide puts private and public at an indent between class and its members.

I guess that would make this work as intended, but of course one doesn't necessarily control the house style of the code they work on.

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

2 participants