"# include" (with a space) is ignored for dependency parsing in UHT
When you have a space after the pound sign for an include (or any other preprocessor directive), the statement is silently ignored by UHT when scanning for dependencies, even though this is perfectly valid preprocessor syntax.
This is problematic because it can cause UHT to not pick up dependencies for a file when generating the header metadata.
asked Sep 13 '16 at 10:39 PM in Bug Reports
The only way that I was able to get this to reproduce consistently was by adding a struct to a header file, then adding a second struct to a second header file that referenced the first struct. Once that was built, I had to essentially switch the structs so that the first one was now referencing the second one, and add a space in the include that I added to the first header file. It was a somewhat complicated repro, so if you are aware of a simpler method of reproducing the issue, that would be helpful.
I have entered ticket UE-36390 to have this investigated further.
answered Sep 23 '16 at 08:40 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here