vscode-cpp-helper icon indicating copy to clipboard operation
vscode-cpp-helper copied to clipboard

Nothing of C++ Helper works anymore after calling "Create Implementation" with a special constructor in your class

Open Food2023 opened this issue 2 years ago • 3 comments

If you call "Create Implementation Here" in a class with a special constructor the extension won't work anymore. No C++ helper function works until restart of VSCode.

Example: Create a *.hpp file and insert:

class StateR : public State
{
public:
    StateR(IState* f_stateHandling):
        State()
        {};
    boolean nextState();
};

Call "Create Implementation Here" on the nextState. Nothing will happen. No other "Create Implementation" methods will work anymore.

Food2023 avatar Feb 01 '24 17:02 Food2023

+1

ab503044120 avatar Mar 21 '24 03:03 ab503044120

I guess the regex I used for parsing is broken on your code. You can check the regex used here:

https://github.com/amir9480/vscode-cpp-helper/blob/master/src/FunctionDetails.ts#L85

amir9480 avatar Apr 16 '24 17:04 amir9480

Thanks for the feedback but I have same the regular expressions like you (in your link). I feel there is something wrong with them.

Food2023 avatar Apr 18 '24 09:04 Food2023