Suppose I want to write my own preprocessor.
So I want something like this:
all *.cpp and *.hpp (even the included ones), before they go to g++, they go:
file --> my preprocessor -> g++
Is there a easy way to do this in the LLVM framework? i.e. to add in a stage that says: "after you load up the source file, pipe it through this program before compling it" ?
Thanks!