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

C++ for functions with [[nodiscard]] #118

Open
mokafolio opened this issue Dec 7, 2022 · 1 comment
Open

C++ for functions with [[nodiscard]] #118

mokafolio opened this issue Dec 7, 2022 · 1 comment
Labels
bug Something isn't working under review Waiting for review by users or developer.

Comments

@mokafolio
Copy link

mokafolio commented Dec 7, 2022

Hello,

When trying to annotate a function inside a struct or class, neogen does not work for functions that use an attribute such as:

class Foo{
    [[nodiscard]] bool bar();
};

Thanks for the great plugin!

UPDATE:
Actually it seems to work most of the time but there are cases where it does not and so far I have a hard time finding a pattern, will update the issue once I made some sense of it!

@danymat
Copy link
Owner

danymat commented Dec 26, 2022

Hello, thanks for your feedback !
To help me in debugging, can you provide snippets of functions that are retrieved, and the ones that are not ?

@danymat danymat added the bug Something isn't working label Dec 26, 2022
@danymat danymat changed the title c++ neogen does not work on functions inside class definitions that have an attribute such as [[nodiscard]] C++ for functions with [[nodiscard]] Dec 26, 2022
@danymat danymat added the under review Waiting for review by users or developer. label Dec 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working under review Waiting for review by users or developer.
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants