neogen icon indicating copy to clipboard operation
neogen copied to clipboard

C++ for functions with `[[nodiscard]]`

Open mokafolio opened this issue 2 years ago • 1 comments

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!

mokafolio avatar Dec 07 '22 19:12 mokafolio

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 avatar Dec 26 '22 11:12 danymat