forked from OSchip/llvm-project
[AST] Suppress diagnostic output when generating code
This commit is contained in:
parent
539bbbe7b5
commit
f5030f1a8e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue