I want my clang plugin to not actually do anything if there was an error compiling the code for the AST my plugin is going to run on.
However, I can't figure out what object contains the list of errors generated during compilation.
Is there either a boolean query for whether there was an error or a list API for getting all the errors (or all diagnostics) generated during the TU compilation?
Thank you.