Problem with assert in the CodeGenerator

Hello everyone,

Suddenly, every time I try to compile my game I get this error:

Assertion failed: ClassData [File:D:\BuildFarm\buildmachine_++depot+UE4 Releases+4.10\Engine\Source\Programs\UnrealHeaderTool\Private\CodeGenerator.cpp] [Line: 1949]

I have tried looking at other questions with an assert error, but I could not find any clues

Did you add any new classes recently?

Does that also happen with an empty c++ project?

I added a new class recently, the error showed up after I fixed other compile errors with the class. However, the problem persists after commenting out the code. When I try to compile an empty project I get an error about Target Rules.
Maybe I should just try to reinstall the whole editor.

For me the culprit was autoformat and multiline macro ( #define )…