diff options
author | Chris Lattner <sabre@nondot.org> | 2010-05-24 18:37:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-05-24 18:37:03 +0000 |
commit | 787aef9aedae45d54772f9784968b8216a363ad9 (patch) | |
tree | 6a715a253660bab3e9b79139b597e82b46f639fc /clang/lib/Frontend/TextDiagnosticPrinter.cpp | |
parent | 36680dd7510fd6575ff9e9ae9cf5e23b9d20b379 (diff) | |
download | bcm5719-llvm-787aef9aedae45d54772f9784968b8216a363ad9.tar.gz bcm5719-llvm-787aef9aedae45d54772f9784968b8216a363ad9.zip |
when too many errors are emitted, and we produce:
fatal error: too many errors emitted, stopping now [-ferror-limit=]
Tell the user that this is controlled with -ferror-limit=, like above.
llvm-svn: 104528
Diffstat (limited to 'clang/lib/Frontend/TextDiagnosticPrinter.cpp')
-rw-r--r-- | clang/lib/Frontend/TextDiagnosticPrinter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/TextDiagnosticPrinter.cpp b/clang/lib/Frontend/TextDiagnosticPrinter.cpp index 547ff4d46b7..6ccf4f1ad0a 100644 --- a/clang/lib/Frontend/TextDiagnosticPrinter.cpp +++ b/clang/lib/Frontend/TextDiagnosticPrinter.cpp @@ -825,6 +825,8 @@ void TextDiagnosticPrinter::HandleDiagnostic(Diagnostic::Level Level, if (const char *Opt = Diagnostic::getWarningOptionForDiag(Info.getID())) { OptionName = "-W"; OptionName += Opt; + } else if (Info.getID() == diag::fatal_too_many_errors) { + OptionName = "-ferror-limit="; } else { // If the diagnostic is an extension diagnostic and not enabled by default // then it must have been turned on with -pedantic. |