I am working on a libTooling based project where I have written a custom frontend action class by referring this. Now I want to run clang static analysis in the same tool. Currently, I am running the tool again for clang static analysis (after modifying compiler options). But this will parse the files and create AST again.
I want to create AST once and use for custom frontend action and clang static analysis.
How can I achieve this? Is MultiplexConsumer is of any help here?