[PATCH] Fix for Bug 7256 - clang++ should provide a fix-it hint for incorrect destructor declarations

Dmitri Gribenko gribozavr at gmail.com
Mon Feb 18 13:51:02 PST 2013


On Mon, Feb 18, 2013 at 11:40 PM, Ismail Pazarbasi
<ismail.pazarbasi at gmail.com> wrote:
> Hi,
>
> I have made this a while ago, but didn't have a chance to submit it.
>
> When an invalid destructor name is found within a class scope, a
> fix-it hint will be issued to correct the destructor name so that it
> matches the class name.

We have a way to test fixit text directly
(-fdiagnostics-parseable-fixits).  See test/FixIt/typo.c for an
example.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the cfe-commits mailing list