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

"Create Implementation" fails when header file contains comments #49

Closed Geometror closed 2 years ago

Geometror commented 2 years ago

When a header file contains comments of any kind the function cannot be found or the wrong function is selected. (due to a position mismatch, since line comments are removed before the functions are parsed, so the positon of the function in the active editor is always greater when comments are present)

jrdmellow commented 2 years ago

I'm also experiencing this issue. Had to roll back to v0.2.2 since my workflow automatically adds a header comment (Unreal Engine copyright notice) and documentation comments in the header are common throughout the code base.

amir9480 commented 2 years ago

Please update to version 0.3.1.