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

Create a CppDocument::memberUnderCursor() #91

Open
narnaud opened this issue Jul 5, 2024 · 2 comments
Open

Create a CppDocument::memberUnderCursor() #91

narnaud opened this issue Jul 5, 2024 · 2 comments
Labels
⬆️ feature New feature or request 🙋 good first issue Good for newcomers

Comments

@narnaud
Copy link
Member

narnaud commented Jul 5, 2024

This should allow to get the member of a class under the symbol:

  • returns null if it's not a symbol
  • returns the Symbol (type Field)

To do that, you need to call CppDocument::queryMember in the header file, and then create the symbol based on the querymatch.
Make sure to go back to where the cursor was when the method was called.

@narnaud narnaud added ⬆️ feature New feature or request 🙋 good first issue Good for newcomers labels Jul 5, 2024
@narnaud narnaud added this to the Release 1.0.0 milestone Jul 5, 2024
@LeonMatthesKDAB
Copy link
Collaborator

Hm, I think by "under the symbol" you actually mean "under the cursor", could that be the case?

Otherwise I'm not entirely sure what's meant by this 🤔

@narnaud narnaud removed this from the Release 1.0.0 milestone Sep 2, 2024
@narnaud narnaud changed the title Create a CppDocument::memberUnderSymbol() Create a CppDocument::memberUnderCursor() Sep 12, 2024
@narnaud
Copy link
Member Author

narnaud commented Sep 12, 2024

Fixed, it's indeed Symbol under cursor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⬆️ feature New feature or request 🙋 good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants