An idea for limiting diagnostic output, from David Abrahams

llvm-svn: 63732
This commit is contained in:
Douglas Gregor 2009-02-04 13:07:56 +00:00
parent e7d5479136
commit 82b7372941
1 changed files with 9 additions and 0 deletions

View File

@ -50,6 +50,15 @@ overloaded-operator-decl.cpp:37:23: error: parameter of overloaded post-incremen
X operator++(X&, const float& f);
^ ~~~~~~~~~~~~~~
//===---------------------------------------------------------------------===//
For terminal output, we should consider limiting the amount of
diagnostic text we print once the first error has been
encountered. For example, once we have produced an error diagnostic,
we should only continue producing diagnostics until we have produced a
page full of results (say, 50 lines of text). Beyond that, (1) the
remaining errors are likely to be less interesting, and (2) the poor
user has to scroll his terminal to find out where things went wrong.