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

Minor issue with generated implementation for pure virtual functions #61

Open hattesen opened 1 year ago

hattesen commented 1 year ago

When an implementation is generated from a pure virtual function declaration, the = 0 is not removed.

This issue is present in C++ Helper, v0.3.1

Current behavior (v0.3.1)

Declaration (header):

virtual char charAt(int row, int col, int tick) = 0;

Generated implementation:

char Decorator::charAt(int row, int col, int tick) = 0
{

}

Proposed behavior

Generated implementation (without = 0):

char Decorator::charAt(int row, int col, int tick)
{

}