I want to add a custom preprocessing step to the build process. What I want to happen is:
- Regular preprocessing.
- My custom script would run and transform the preprocessed output. Specifically, it will wrap functions marked with a
[[log]]
attribute with a logger that stores arguments and return value. - Continue compilation/linking of the altered files.
What options do I have using CMake and clang?