cppfront icon indicating copy to clipboard operation
cppfront copied to clipboard

Fix pure cpp1 header file generated using -import-std

Open MatthieuHernandez opened this issue 1 year ago • 3 comments
trafficstars

I've noticed that if I execute cppfront.exe with the -import-std option on a .h file that doesn't contain any cpp2 code, then an #endif will be missing at the end of the file. See https://github.com/hsutter/cppfront/issues/1320 for more info.

⚠️ I haven't added any test because I didn't see any tests with .h files.

MatthieuHernandez avatar Oct 17 '24 20:10 MatthieuHernandez