[cfe-commits] r104528 - /cfe/trunk/lib/Frontend/TextDiagnosticPrinter.cpp

Chris Lattner sabre at nondot.org
Mon May 24 11:37:03 PDT 2010


Author: lattner
Date: Mon May 24 13:37:03 2010
New Revision: 104528

URL: http://llvm.org/viewvc/llvm-project?rev=104528&view=rev
Log:
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.

Modified:
    cfe/trunk/lib/Frontend/TextDiagnosticPrinter.cpp

Modified: cfe/trunk/lib/Frontend/TextDiagnosticPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/TextDiagnosticPrinter.cpp?rev=104528&r1=104527&r2=104528&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/TextDiagnosticPrinter.cpp (original)
+++ cfe/trunk/lib/Frontend/TextDiagnosticPrinter.cpp Mon May 24 13:37:03 2010
@@ -825,6 +825,8 @@
     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.





More information about the cfe-commits mailing list