[AST] Suppress diagnostic output when generating code

This commit is contained in:
Stephen Kelly 2021-03-17 01:29:39 +00:00
parent 539bbbe7b5
commit f5030f1a8e
1 changed files with 2 additions and 0 deletions

View File

@ -135,6 +135,8 @@ int main(int argc, const char **argv) {
if (!Compiler.hasDiagnostics())
return 1;
// Suppress "2 errors generated" or similar messages
Compiler.getDiagnosticOpts().ShowCarets = false;
Compiler.createSourceManager(Files);
ASTSrcLocGenerationAction ScopedToolAction;