Files with dots in the filename cause invalid macro names to be used.
studoot opened this issue · 1 comments
studoot commented
I create an empty header file called a.test.h
. I invoke the extension.headFileGuard.insertHeadFileGuard
command using Ctrl
+Shift
+P
. The following text is inserted into the file:
#ifndef A_TEST.H
#define A_TEST.H
#endif /* A_TEST.H */
The name used for the guard macro (A_TEST.H
) is not a valid C/C++ identifier.
I've not entered a value for the setting headFileGuard.type
, so the extension should be using the default value filename
.
studoot commented
It looks like the 0.0.3 release of the extension fixes this issue, from the tests I've done.