verify-trace-members
is a tool to verify correct usage of Cobalt's tracer members system.
verify-trace-members
consists of two components:
Before you can run the tool, both gyp and ninja (for the all target) must be run for linux-x64x11. Why? Because in order to properly comprehend C++ in Cobalt, we must know the exact commands Clang is invoked with when building it. Ninja must be run because of generated headers.
Then, you can run cobalt/tools/verify-trace-members/verify-trace-members.py
from src/
, which will output suspected TraceMembers issues.
Follow the instructions available here. You will have to check out (all hashes are from the git mirrors):
Just add VerifyTraceMembers.cpp in place of LoopConvert.cpp. The only important extra step not in the tutorial is to run cmake for the final binary with -DCMAKE_BUILD_TYPE=Release
.