slice2cpp: .cpp file includes .h file using system-style header inclusion ( < > brackets)

in Bug Reports
The auto-generated cpp file output by slice2cpp includes its header using system-style header inclusion ( < > brackets). This causes problems when compiled via clang, as clang expects user headers to be included via quotes only.
Two workarounds:
1. Manually edit the .cpp file after every time slice2cpp is run.
2. Specify the directory holding the .h file as a system header path to clang (with -isystem command line option).
0
Comments
Hi,
Adding the
-I<path>
clang compiler option to add a header search path doesn't work? You shouldn't have to use-isystem
.Cheers,
Benoit.
No, -I won't search local directories for <> style header inclusions by default under Clang on macOS (part of Xcode tools).
Hi Philip,
Which clang version do you use?
It works for me with clang form the command line tools:
Cheers,
Benoit.
Sorry for the late reply. I have the same version. I should have clarified that this is when being included as part of an Xcode project. I suppose Xcode is overriding some setting to do with Clang's inclusions, but I haven't found what yet.