vscode-cpp-helper icon indicating copy to clipboard operation
vscode-cpp-helper copied to clipboard

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

Open Wakotu opened this issue 2 years ago • 1 comments

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()
{
    
}

Wakotu avatar Jul 07 '22 13:07 Wakotu

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

knetworx avatar Aug 22 '23 21:08 knetworx