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 to Questions & Answers just mention UE-85807 in the post.

1
Login to Vote

Fixed
ComponentUE - Foundation - Cpp Tools - UnrealHeaderTool
Affects Versions4.224.234.24
Target Fix5.0
Fix Commit16886923
Main Commit16886923
CreatedDec 13, 2019
ResolvedJul 19, 2021
UpdatedAug 3, 2021
View Jira Issue