[cfe-commits] [PATCH] Limit the number of overload candidates printed (issue1591041)
dgregor at apple.com
Tue Jun 8 07:49:32 PDT 2010
On Jun 7, 2010, at 6:03 PM, jyasskin at gmail.com wrote:
> Reviewers: cfe-commits_cs.uiuc.edu,
> Please take a look. If you prefer reviewing diffs, they're behind the
> "Download raw patch set" link.
> When there are lots of operator<<s, clang produces significantly worse
> diagnostics than gcc, simply because of the size of the output. This
> patch limits clang to 4 overload candidates, with the ability to show
> the rest by passing -fshow-all-overloads, as a first cut. We'll want to
> refine that later as examples of bad behavior come up.
Unless we can be fairly sure that the "right" operator<< is in those first 4 overload candidates, I don't think this is a good idea. Unlike with suppressing inner template/macro instantiation histories, this change is likely to suppress important information.
More information about the cfe-commits