Re: RFC: c++ diagnostics

2010-04-14 Thread Manuel López-Ibáñez
This may be of interest to KDE developers. So adding them to the CC list. Manuel. On 5 April 2010 17:20, Benjamin Kosnik wrote: > > Hello all! > > I've put up a short diagnostics comparison between gcc, icc, and > clang. It is my plan to update this with major revisions to individual > compilers

Re: RFC: c++ diagnostics

2010-04-13 Thread Manuel López-Ibáñez
On 5 April 2010 17:20, Benjamin Kosnik wrote: > > Included are most of the outstanding bugzilla requests with the > "diagnostic" keyword. However, I am looking for help! Please send me > code samples that frustrate, obfuscate, and annoy. Some PRs missing in this list: 986 13452 13657 15766 16663

Re: RFC: c++ diagnostics

2010-04-06 Thread Robert Dewar
Laurent GUERBY wrote: On Tue, 2010-04-06 at 12:02 -0700, Joe Buck wrote: http://blog.llvm.org/2010/04/amazing-feats-of-clang-error-recovery.html ...As it happens, some C++ diagnostics are better than the same diagnostic for C and viceversa. On Tue, Apr 06, 2010 at 09:45:11AM -0700, Chris Lattn

Re: RFC: c++ diagnostics

2010-04-06 Thread Laurent GUERBY
On Tue, 2010-04-06 at 12:02 -0700, Joe Buck wrote: > > >> http://blog.llvm.org/2010/04/amazing-feats-of-clang-error-recovery.html > > > > > > ...As it happens, some C++ diagnostics are better than the > > > same diagnostic for C and viceversa. > > On Tue, Apr 06, 2010 at 09:45:11AM -0700, Chris L

Re: RFC: c++ diagnostics

2010-04-06 Thread Joe Buck
> >> http://blog.llvm.org/2010/04/amazing-feats-of-clang-error-recovery.html > > > > ...As it happens, some C++ diagnostics are better than the > > same diagnostic for C and viceversa. On Tue, Apr 06, 2010 at 09:45:11AM -0700, Chris Lattner wrote: > I think all the C examples are also valid C++

Re: RFC: c++ diagnostics

2010-04-06 Thread Chris Lattner
On Apr 6, 2010, at 9:29 AM, Manuel López-Ibáñez wrote: >> Hi Benjamin, >> >> I wrote a little blog post that shows off some of the things that Clang can >> do. It would be great to improve some of GCC/G++'s diagnostics in a similar >> way: >> >> http://blog.llvm.org/2010/04/amazing-feats-of-cl

Re: RFC: c++ diagnostics

2010-04-06 Thread Manuel López-Ibáñez
On 6 April 2010 18:00, Chris Lattner wrote: > > On Apr 5, 2010, at 8:20 AM, Benjamin Kosnik wrote: > >> >> Hello all! >> >> I've put up a short diagnostics comparison between gcc, icc, and >> clang. It is my plan to update this with major revisions to individual >> compilers. >> >> Included are mo

Re: RFC: c++ diagnostics

2010-04-06 Thread Joe Buck
On Tue, Apr 06, 2010 at 09:00:16AM -0700, Chris Lattner wrote: > I wrote a little blog post that shows off some of the things that Clang can > do. It would be great to improve some of GCC/G++'s diagnostics in a similar > way: > > http://blog.llvm.org/2010/04/amazing-feats-of-clang-error-recover

Re: RFC: c++ diagnostics

2010-04-06 Thread Chris Lattner
On Apr 5, 2010, at 8:20 AM, Benjamin Kosnik wrote: > > Hello all! > > I've put up a short diagnostics comparison between gcc, icc, and > clang. It is my plan to update this with major revisions to individual > compilers. > > Included are most of the outstanding bugzilla requests with the > "

Re: RFC: c++ diagnostics

2010-04-05 Thread Chris Lattner
On Apr 5, 2010, at 12:51 PM, Benjamin Kosnik wrote: >> >> 5) There are a couple cases of GCC rejecting valid code (e.g. 19377), >> or which there may be some debate about (19538) it might be worth >> pointing this out. *shrug* > > One of the goals was to measure the output when the input is > t

Re: RFC: c++ diagnostics

2010-04-05 Thread Benjamin Kosnik
> 2) The clang invocations don't need -fcaret-diagnostics > -fshow-source-location -fdiagnostics-fixit-info because they are the > default. > > 3) It's best to not pass -fdiagnostics-print-source-range-info unless > you're looking for machine interpretable output. This flag adds > things like {3

Re: RFC: c++ diagnostics

2010-04-05 Thread Benjamin Kosnik
> How to contribute? patches against the html? I see there are some > examples without output. Also, it would be nicer if the page linked to > each PR in bugzilla. Well, the html is auto-generated so that isn't really the way to go. Should I just check in the tests + xml into some gcc repository?

Re: RFC: c++ diagnostics

2010-04-05 Thread Manuel López-Ibáñez
On 5 April 2010 17:20, Benjamin Kosnik wrote: > > Hello all! > > I've put up a short diagnostics comparison between gcc, icc, and > clang. It is my plan to update this with major revisions to individual > compilers. Awesome! How to contribute? patches against the html? I see there are some examp

Re: RFC: c++ diagnostics

2010-04-05 Thread Chris Lattner
On Apr 5, 2010, at 8:20 AM, Benjamin Kosnik wrote: > > Hello all! > > I've put up a short diagnostics comparison between gcc, icc, and > clang. It is my plan to update this with major revisions to individual > compilers. > > Included are most of the outstanding bugzilla requests with the > "

RFC: c++ diagnostics

2010-04-05 Thread Benjamin Kosnik
Hello all! I've put up a short diagnostics comparison between gcc, icc, and clang. It is my plan to update this with major revisions to individual compilers. Included are most of the outstanding bugzilla requests with the "diagnostic" keyword. However, I am looking for help! Please send me cod