Developer Notes

This issue has been closed as 'Won't Fix' due to an extended period of time without updates. If this issue is important to you please let us know by posting on the AnswerHub or UDN, and Epic will re-open the ticket for further review.

Description

If a block comment is used above the UCLASS Macro, leading spaces before the start of the comment causes UHT to fail and the solution to fail compile with a "Missing 'UCLASS' in Class declaration" error. Removing leading spaces fixes the compile issue.

Steps to Reproduce
  1. Open UE4Editor (any project)
  2. Add code to the project based on Actor (MyActor)
  3. In MyActor.h add the following comment block setup above the UCLASS() macro:
    /**
    *
    *
    */
    
  4. Add a leading space before the start of the comment
  5. Compile

Result:
UHT will fail to compile because it can't find 'UCLASS'

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

1
Login to Vote

Won't Fix
ComponentUE - Foundation - Core
Affects Versions4.10
CreatedDec 4, 2015
ResolvedJan 13, 2017
UpdatedFeb 5, 2017
View Jira Issue