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

Bug of creating implementation of the very first function of a header file #55

Open Wakotu opened 2 years ago

Wakotu commented 2 years ago

when I use the plugin to create the implementation of the very first function declaration of a header file with a header guard, part of the header guard exists along with the implementation. example as follows:

// test.h
#ifndef __TEST_H__
#define __TEST_H__

void test();

#endif // __TEST_H__
// test.cpp
#include "test.h"

__TEST_H__

void test()
{

}
knetworx commented 1 year ago

I've noticed something similar when creating implementations of functions around #pragma regions.