Downstream users may have Clang plugins. By default these plugins run
after the main action if they are specified on the command line.
Since these plugins are ASTConsumers, presumably they inspect the AST.
So we shouldn't clear it if any plugins run after the main action.
Can you test that the "consumers running after the main action" are actually running here in a relatively lightweight manner? (ie: in a way that depends on as little details of their behavior as possible, just that they ran)