Bug in UnrealHeaderTool with /** comment */

I found another bug in parsing.

If you have a comment block beginning with space before the UCLASS()
it gives the following error :

 /**
 * @brief The rule sets.
 * 		  defined in DefaultRules.ini under [MyCustomRuleTag KSGMDefaultRulesets]
 */
UCLASS(Config=Rules, perObjectConfig)
class KSGM_API UKGameRuleset : public UObject

1>D:/KadeoGames/UDK/KSGM/Source/KSGM/Online/KGameRuleset.h(1): error : Missing ‘UCLASS’ in Class declaration

If you remove the comment block, ok.

And if you remove the space char before the /**
ok, it parses correctly.

D,

Hey -

I was able to reproduce the compile failure you mentioned and have entered a bug report (UE-24110) for further investigation.

Cheers

I can confirm that, had the same problem just now, drove me nuts, luckily I found this post.If there are spaces before the comments it wont compile

Just had the same problem. I’m on version 4.15.3

 /**
 *
 */
UCLASS()

Failed with the same error.

I deleted the comment and replaced with:

/**
*
*/
UCLASS()

now it builds, and i can reproduce it by putting it back in.