amir9480 / vscode-cpp-helper

vscode extension to create implementation for c++ function prototypes.
https://marketplace.visualstudio.com/items?itemName=amiralizadeh9480.cpp-helper
MIT License
355 stars 31 forks source link

[[nodiscard]] attribute support #39

Closed armandas closed 2 years ago

armandas commented 3 years ago

First of all, thank you for this extension, I just started using and already love it!

I have found one issue: if a [[nodiscard]] attribute is present in the function declaration, part of it appears in the implementation output.

Header file:

#ifndef TEST_H
#define TEST_H

class Test
{
public:

    [[nodiscard]] bool test() const;
};

#endif // TEST_H

Implementation output:

nodiscard]] bool Test::test() const
{

}

Expected output:

bool Test::test() const
{

}
amir9480 commented 2 years ago

@armandas Please update to v0.3.0