Add the following options:
- -fdebug-measure-parse-tree
- -fdebug-pre-fir-tree
Summary of changes:
- Add 2 new frontend actions: DebugMeasureParseTreeAction and DebugPreFIRTreeAction
- Add MeasurementVisitor to FrontendActions.h
- Make reportFatalSemanticErrors return true if there are any fatal errors
- Port most of the -fdebug-pre-fir-tree tests to use the new driver if built, otherwise use f18
This should be shared with f18.cpp, but currently we don't have a good place for that (and we probably want to understand how much is going to be shared first). So IMO it is fine to keep it here.
Could you add a comment similar to this so that it is clear that this should be moved at some point?