vscode-cpp-helper
vscode-cpp-helper copied to clipboard
Bug of creating implementation of the very first function of a header file
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()
{
}
I've noticed something similar when creating implementations of functions around #pragma regions.