Where can i get the preprocessing source file

Here’s how I get the preprocessed MyActor.cpp:

Find the Compiler Response File “MyProject/Intermediate/Build/Win64/MyProect/Debug/MyActor.cpp.obj.response”.

Find all Preproscessor Definitions under VS2015 project properties ->NMake.

Edit .response file

  • Insert Preproscessor Definitions into .response file

  • Replace the /Fo line with /P

open “VS2015 x64 Native Tools Command Prompt”

cd MyProject/Intermediate/Build/Win64/MyProect/Debug/

cl.exe @MyActor.cpp.obj.response

Then the huge prepocessed c++ file MyActor.i is generated

Use clang-format to beautify it