Description

When mentioning the _Validate Suffix in code comment, Visual Studio compiler throws an error.

Steps to Reproduce
  1. Create a new blank C++ Project in Unreal
  2. Create a new C++ Actor Class
  3. In the header file declare & implement  the following functions
    void Fire();
    
    /* Mentioning ServerFire_Validate*/
    
    UFUNCTION(Server, Reliable, WithValidation)
    void ServerFire();

    4.Build Project Solution.

 

Result: Error: ServerFire_Validate: Is not a member of AMyActor

Expected: Compiler would ignore code comments.

Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-85807 in the post.

1
Login to Vote

Unresolved
ComponentCore - UnrealHeaderTool
Affects Versions4.224.234.24
Target Fix4.25
CreatedDec 13, 2019
UpdatedDec 16, 2019