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

Question: it creates the definition of the function that is one line before the function that I selected #74

Open white20000930 opened 5 months ago

white20000930 commented 5 months ago

as the figure shows 图片 图片

amir9480 commented 5 months ago

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